summaryrefslogtreecommitdiff
path: root/nixos/modules/programs/steam.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/programs/steam.nix')
-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;
+ };
+}