diff --git a/.gitignore b/.gitignore index 1be5a96..d6515b7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ .sops.yaml .claude/ old/ +result/ +result diff --git a/home/programs/steam/default.nix b/home/programs/steam/default.nix index 612c77f..06fe77b 100644 --- a/home/programs/steam/default.nix +++ b/home/programs/steam/default.nix @@ -5,7 +5,6 @@ home.packages = with pkgs; [ steam protonup-ng - proton-ge-bin ]; xdg.desktopEntries = { diff --git a/hosts/laptop/flake.nix b/hosts/laptop/flake.nix index e1b0f6e..1e74f53 100644 --- a/hosts/laptop/flake.nix +++ b/hosts/laptop/flake.nix @@ -3,17 +3,44 @@ nixpkgs, ... }: + nixpkgs.lib.nixosSystem { modules = [ { nixpkgs.overlays = []; - _module.args = {inherit inputs;}; + _module.args = { + inherit inputs; + }; } - inputs.nixos-hardware.nixosModules.omen-16-n0005ne + + ({ config, pkgs, lib, ... }: { + # Intel microcode + hardware.cpu.intel.updateMicrocode = true; + + # Graphics support + hardware.graphics = { + enable = true; + enable32Bit = true; + }; + + # Power management + powerManagement.cpuFreqGovernor = "powersave"; + services.tlp.enable = true; + services.power-profiles-daemon.enable = false; + + # Kernel modules commonly needed on ThinkPads + boot.kernelModules = [ + "i915" + "snd_hda_intel" + "iwlwifi" + ]; + }) + inputs.home-manager.nixosModules.home-manager inputs.stylix.nixosModules.stylix inputs.nix-index-database.nixosModules.default inputs.helium-browser.nixosModules.default + ./configuration.nix ]; } diff --git a/hosts/laptop/home.nix b/hosts/laptop/home.nix index aba05e3..7b53a2b 100644 --- a/hosts/laptop/home.nix +++ b/hosts/laptop/home.nix @@ -37,7 +37,8 @@ }; sessionVariables = { - AQ_DRM_DEVICES = "/dev/dri/card2:/dev/dri/card1"; # CHANGEME: Related to the GPU + # Graphics devices for Intel Iris Xe Graphics + # AQ_DRM_DEVICES = "/dev/dri/card0"; # Single GPU configuration }; # Don't touch this diff --git a/hosts/laptop/variables.nix b/hosts/laptop/variables.nix index 0ad1c06..8e98566 100644 --- a/hosts/laptop/variables.nix +++ b/hosts/laptop/variables.nix @@ -17,7 +17,7 @@ timeZone = "Europe/Berlin"; defaultLocale = "de_DE.UTF-8"; - extraLocale = "en_EN.UTF-8"; + extraLocale = "en_US.UTF-8"; git = { username = "kptltd00m"; diff --git a/nixos/utils.nix b/nixos/utils.nix index 44d6a4c..60abc8b 100644 --- a/nixos/utils.nix +++ b/nixos/utils.nix @@ -83,7 +83,7 @@ in { }; gvfs.enable = true; upower.enable = true; - power-profiles-daemon.enable = true; + power-profiles-daemon.enable = false; udisks2.enable = true; };