summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorAlan Pearce2017-12-12 15:45:27 +0100
committerAlan Pearce2017-12-12 15:45:27 +0100
commit18c8166b4feaae28e604cd2958e3696c49b77b69 (patch)
treec9e26e6e8bbb2e7e8b555e8367e035cb81900f8e /modules
parent186c927d0fc00b25629e2816ca78be05e56c2271 (diff)
downloadnixos-configuration-18c8166b4feaae28e604cd2958e3696c49b77b69.tar.lz
nixos-configuration-18c8166b4feaae28e604cd2958e3696c49b77b69.tar.zst
nixos-configuration-18c8166b4feaae28e604cd2958e3696c49b77b69.zip
Add Steam module
Move OpenGL 32-bit support here as it's not specific to Intel GPUs
Diffstat (limited to 'modules')
-rw-r--r--modules/hardware/nvidia-gpu.nix1
-rw-r--r--modules/programs/steam.nix8
2 files changed, 8 insertions, 1 deletions
diff --git a/modules/hardware/nvidia-gpu.nix b/modules/hardware/nvidia-gpu.nix
index 2c49e96..9fc3416 100644
--- a/modules/hardware/nvidia-gpu.nix
+++ b/modules/hardware/nvidia-gpu.nix
@@ -1,6 +1,5 @@
 { config, pkgs, ... }:
 
 { services.xserver.videoDrivers = [ "nvidia" ];
-  hardware.opengl.driSupport32Bit = true;
   nixpkgs.config.allowUnfree = true;
 }
diff --git a/modules/programs/steam.nix b/modules/programs/steam.nix
new file mode 100644
index 0000000..d4bad7a
--- /dev/null
+++ b/modules/programs/steam.nix
@@ -0,0 +1,8 @@
+{ config, pkgs, ... }:
+
+{ environment.systemPackages = with pkgs; [
+    steam
+  ];
+  hardware.opengl.driSupport32Bit = true;
+  hardware.pulseaudio.support32Bit = true;
+}