diff options
author | Ethel Morgan <eth@ethulhu.co.uk> | 2020-07-01 20:36:27 +0100 |
---|---|---|
committer | Ethel Morgan <eth@ethulhu.co.uk> | 2020-07-01 20:36:27 +0100 |
commit | 069238aacb8b666fb507ae55ae56f57ea59f22c0 (patch) | |
tree | 588ca0e7f07c9b23b8247f35b2b174918475f386 /nixos | |
parent | 6250cb03ef08c989fdcc0edccafe2a222b6a159e (diff) |
add eth.programs.steam nixos module
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/module-list.nix | 1 | ||||
-rw-r--r-- | nixos/modules/programs/steam.nix | 24 |
2 files changed, 25 insertions, 0 deletions
diff --git a/nixos/modules/module-list.nix b/nixos/modules/module-list.nix index 9b29135..0fd6318 100644 --- a/nixos/modules/module-list.nix +++ b/nixos/modules/module-list.nix @@ -6,6 +6,7 @@ ./location.nix ./nix.nix ./programs/dwm.nix + ./programs/steam.nix ./services/ambience.nix ./services/catbus-lgtv.nix ./services/catbus-lifx.nix 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; + }; +} |