summaryrefslogtreecommitdiff
path: root/hosts/common/hardware/nvidia.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-01-31 22:45:17 -0500
committerseth <[email protected]>2023-01-31 22:45:17 -0500
commit992f9d54aea0f1546e72351711769b8da6100828 (patch)
treede509a0c98dc011ed6e7af592afe5967c20ace5e /hosts/common/hardware/nvidia.nix
parentb2922a1fef66c1ba9e44c11a2f6316007234dab2 (diff)
add nix-hardware + more nvidia/plasma configs
Diffstat (limited to 'hosts/common/hardware/nvidia.nix')
-rw-r--r--hosts/common/hardware/nvidia.nix7
1 files changed, 6 insertions, 1 deletions
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