summary refs log tree commit diff stats
path: root/modules/hardware/nvidia-gpu.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/hardware/nvidia-gpu.nix')
-rw-r--r--modules/hardware/nvidia-gpu.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/hardware/nvidia-gpu.nix b/modules/hardware/nvidia-gpu.nix
new file mode 100644
index 0000000..2c49e96
--- /dev/null
+++ b/modules/hardware/nvidia-gpu.nix
@@ -0,0 +1,6 @@
+{ config, pkgs, ... }:
+
+{ services.xserver.videoDrivers = [ "nvidia" ];
+  hardware.opengl.driSupport32Bit = true;
+  nixpkgs.config.allowUnfree = true;
+}