mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 02:50:41 +00:00
Add steam
This commit is contained in:
parent
1d49318179
commit
dfd2dd7ad3
4 changed files with 27 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue