summaryrefslogtreecommitdiff
path: root/profiles/hardware/nvidia.nix
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/hardware/nvidia.nix')
-rw-r--r--profiles/hardware/nvidia.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/profiles/hardware/nvidia.nix b/profiles/hardware/nvidia.nix
new file mode 100644
index 0000000..473eb81
--- /dev/null
+++ b/profiles/hardware/nvidia.nix
@@ -0,0 +1,25 @@
+{
+ config,
+ pkgs,
+ ...
+}: {
+ imports = [
+ ./.
+ ];
+ hardware = {
+ nvidia = {
+ package = config.boot.kernelPackages.nvidiaPackages.stable;
+ modesetting.enable = true;
+ };
+ opengl = {
+ enable = true;
+ # make steam work
+ driSupport32Bit = true;
+ extraPackages = with pkgs; [
+ vaapiVdpau
+ ];
+ };
+ };
+
+ services.xserver.videoDrivers = ["nvidia"];
+}