summaryrefslogtreecommitdiff
path: root/modules/hardware/nvidia.nix
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-08-28 20:36:04 -0700
committerFuwn <[email protected]>2024-08-28 20:36:04 -0700
commitf3c31e4ad7fab36e151f3a2e207fafb1eda1a787 (patch)
treee265a1a5270b4522049110b8bc5aa13fda142c2f /modules/hardware/nvidia.nix
parentmany (diff)
downloadnixos-config-f3c31e4ad7fab36e151f3a2e207fafb1eda1a787.tar.xz
nixos-config-f3c31e4ad7fab36e151f3a2e207fafb1eda1a787.zip
hi
Diffstat (limited to 'modules/hardware/nvidia.nix')
-rw-r--r--modules/hardware/nvidia.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/hardware/nvidia.nix b/modules/hardware/nvidia.nix
new file mode 100644
index 0000000..d6c16e2
--- /dev/null
+++ b/modules/hardware/nvidia.nix
@@ -0,0 +1,17 @@
+{ config, ... }:
+{
+ hardware.nvidia = {
+ modesetting.enable = true;
+ open = false;
+ nvidiaSettings = true;
+ package = config.boot.kernelPackages.nvidiaPackages.beta;
+ forceFullCompositionPipeline = true;
+
+ powerManagement = {
+ enable = true;
+ finegrained = false;
+ };
+
+ prime.nvidiaBusId = "PCI:43:0:0";
+ };
+}