Add steam

This commit is contained in:
ItsDrike 2024-07-08 17:07:18 +02:00
parent 1d49318179
commit dfd2dd7ad3
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
4 changed files with 27 additions and 1 deletions

View file

@ -4,5 +4,6 @@
./physlock.nix
./thunar.nix
./virtualbox.nix
./steam.nix
];
}

View file

@ -0,0 +1,19 @@
{
lib,
config,
...
}: let
inherit (lib) mkIf;
cfg = config.myOptions.home-manager.programs.games.steam;
deviceType = config.myOptions.device.roles.type;
acceptedTypes = ["laptop" "desktop"];
in {
config = mkIf ((builtins.elem deviceType acceptedTypes) && cfg.enable) {
programs.steam = {
enable = true;
remotePlay.openFirewall = false;
dedicatedServer.openFirewall = false;
};
};
}