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

@ -64,10 +64,14 @@
".config/WebCord"
".local/share/Smart Code ltd/Stremio"
".config/obs-studio"
".local/share/PrismLauncher"
".config/VirtualBox"
".local/share/VirtulBox VMs"
# Games
".local/share/PrismLauncher"
".local/share/Steam"
#".steam"
# Tools
".ssh"
".local/share/gnupg"
@ -221,6 +225,7 @@
python.enable = true;
};
games = {
steam.enable = true;
prismlauncher.enable = true;
};
};

View file

@ -64,6 +64,7 @@ in
};
games = {
steam.enable = mkEnableOption "Steam client";
prismlauncher.enable = mkEnableOption "PrismLauncher";
};
};

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;
};
};
}