summaryrefslogtreecommitdiffstats
path: root/modules/desktop/apps/games
diff options
context:
space:
mode:
Diffstat (limited to 'modules/desktop/apps/games')
-rw-r--r--modules/desktop/apps/games/steam.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/modules/desktop/apps/games/steam.nix b/modules/desktop/apps/games/steam.nix
new file mode 100644
index 0000000..50b5c62
--- /dev/null
+++ b/modules/desktop/apps/games/steam.nix
@@ -0,0 +1,34 @@
+{
+ config,
+ options,
+ lib,
+ pkgs,
+ ...
+}: let
+ gamesConf = config.modules.desktop.apps.games;
+ configDir = config.nixosConfig.configDir;
+in {
+ options.modules.desktop.apps.games = {
+ enable = lib.mkOption {
+ type = lib.types.bool;
+ default = false;
+ };
+ steam.enable = lib.mkOption {
+ type = lib.types.bool;
+ default = true;
+ };
+ };
+
+ config = lib.mkIf (gamesConf.enable) {
+ home.packages = [
+ pkgs.steam-run
+ ];
+
+ programs.steam = lib.mkIf (gamesConf.steam.enable) {
+ enable = true;
+ remotePlay.openFirewall = true;
+ dedicatedServer.openFirewall = true;
+ gamescopeSession.enable = true;
+ };
+ };
+}