diff options
| -rw-r--r-- | flake.nix | 2 | ||||
| -rw-r--r-- | hosts/common/desktop/plasma.nix | 2 | ||||
| -rw-r--r-- | hosts/common/hardware/nvidia.nix | 7 |
3 files changed, 8 insertions, 3 deletions
@@ -5,6 +5,7 @@ nixos-wsl.url = "git+https://github.com/nix-community/NixOS-WSL?ref=main"; home-manager.url = "github:nix-community/home-manager"; home-manager.inputs.nixpkgs.follows = "nixpkgs"; + nixos-hardware.url = "github.com:NixOS/nixos-hardware"; lanzaboote.url = "github:nix-community/lanzaboote"; }; @@ -53,6 +54,7 @@ interop.includePath = false; }; }) + nixos-hardware.nixosModules.common-cpu-amd-pstate ./users/seth ]; pkgs = nixpkgs; diff --git a/hosts/common/desktop/plasma.nix b/hosts/common/desktop/plasma.nix index 952684f..98eee0b 100644 --- a/hosts/common/desktop/plasma.nix +++ b/hosts/common/desktop/plasma.nix @@ -10,9 +10,7 @@ desktopManager.plasma5 = { enable = true; excludePackages = with pkgs.libsForQt5; [ - elisa khelpcenter - oxygen plasma-browser-integration print-manager ]; diff --git a/hosts/common/hardware/nvidia.nix b/hosts/common/hardware/nvidia.nix index 620761b..6308bc5 100644 --- a/hosts/common/hardware/nvidia.nix +++ b/hosts/common/hardware/nvidia.nix @@ -4,7 +4,12 @@ ... }: { hardware = { - nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable; + nvidia = { + package = config.boot.kernelPackages.nvidiaPackages.stable; + modesetting.enable = true; + nvidiaPersistenced = true; + powerManagement.enable = true; + }; opengl = { enable = true; # make steam work |
