From 7b79203f54853733d4fae88943829d0e24e6e49f Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Sun, 7 Jan 2024 12:00:08 -0500 Subject: massive overhaul --- modules/desktop/apps/games/steam.nix | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 modules/desktop/apps/games/steam.nix (limited to 'modules/desktop/apps/games') 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; + }; + }; +} -- cgit v1.2.1