mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 06:54:35 +00:00
Add steam
This commit is contained in:
parent
1d49318179
commit
dfd2dd7ad3
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
|
|
@ -64,6 +64,7 @@ in
|
|||
};
|
||||
|
||||
games = {
|
||||
steam.enable = mkEnableOption "Steam client";
|
||||
prismlauncher.enable = mkEnableOption "PrismLauncher";
|
||||
};
|
||||
};
|
||||
|
|
|
@ -4,5 +4,6 @@
|
|||
./physlock.nix
|
||||
./thunar.nix
|
||||
./virtualbox.nix
|
||||
./steam.nix
|
||||
];
|
||||
}
|
||||
|
|
19
system/roles/workstation/programs/steam.nix
Normal file
19
system/roles/workstation/programs/steam.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in a new issue