summaryrefslogtreecommitdiff
path: root/nixos/modules/programs
diff options
context:
space:
mode:
authorEthel Morgan <eth@ethulhu.co.uk>2020-07-01 20:36:27 +0100
committerEthel Morgan <eth@ethulhu.co.uk>2020-07-01 20:36:27 +0100
commit069238aacb8b666fb507ae55ae56f57ea59f22c0 (patch)
tree588ca0e7f07c9b23b8247f35b2b174918475f386 /nixos/modules/programs
parent6250cb03ef08c989fdcc0edccafe2a222b6a159e (diff)
add eth.programs.steam nixos module
Diffstat (limited to '')
-rw-r--r--nixos/modules/programs/steam.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/nixos/modules/programs/steam.nix b/nixos/modules/programs/steam.nix
new file mode 100644
index 0000000..91c4af7
--- /dev/null
+++ b/nixos/modules/programs/steam.nix
@@ -0,0 +1,24 @@
+# https://nixos.wiki/wiki/Steam.
+
+{ config, lib, pkgs, ... }:
+with lib;
+
+let
+ cfg = config.eth.programs.steam;
+
+in {
+ options.eth.programs.steam = {
+ enable = mkEnableOption "Whether to enable Steam and supports";
+ };
+
+ config = mkIf cfg.enable {
+ environment.systemPackages = with pkgs; [
+ steam
+ steam-run-native
+ ];
+
+ hardware.opengl.driSupport32Bit = true;
+ hardware.opengl.extraPackages32 = with pkgs.pkgsi686Linux; [ libva ];
+ hardware.pulseaudio.support32Bit = true;
+ };
+}