added steam module

This commit is contained in:
John Lancaster
2025-07-04 10:26:43 -05:00
parent 0260f44582
commit 39a8b1455b
3 changed files with 21 additions and 0 deletions

View File

@@ -34,6 +34,7 @@
_1password = config._1password; _1password = config._1password;
docker = config.docker; docker = config.docker;
graphical = config.graphical; graphical = config.graphical;
steam = config.steam;
} }
] ++ config.extraImports; ] ++ config.extraImports;
@@ -51,6 +52,10 @@
"1password-cli" "1password-cli"
"discord" "discord"
"spotify" "spotify"
"steam"
"steam-original"
"steam-unwrapped"
"steam-run"
"sublimetext4" "sublimetext4"
"vscode" "vscode"
"vscode-extension-mhutchie-git-graph" "vscode-extension-mhutchie-git-graph"

View File

@@ -0,0 +1,10 @@
{ config, pkgs, lib, ... }:
{
programs.steam = lib.mkIf config.steam {
enable = true;
gamescopeSession.enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
};
}

View File

@@ -65,4 +65,10 @@
default = false; default = false;
description = "Whether this system has a graphical environment"; description = "Whether this system has a graphical environment";
}; };
options.steam = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Whether this system has Steam installed";
};
} }