mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-25 18:54:34 +00:00
Add steam
This commit is contained in:
parent
1d49318179
commit
dfd2dd7ad3
|
@ -64,10 +64,14 @@
|
||||||
".config/WebCord"
|
".config/WebCord"
|
||||||
".local/share/Smart Code ltd/Stremio"
|
".local/share/Smart Code ltd/Stremio"
|
||||||
".config/obs-studio"
|
".config/obs-studio"
|
||||||
".local/share/PrismLauncher"
|
|
||||||
".config/VirtualBox"
|
".config/VirtualBox"
|
||||||
".local/share/VirtulBox VMs"
|
".local/share/VirtulBox VMs"
|
||||||
|
|
||||||
|
# Games
|
||||||
|
".local/share/PrismLauncher"
|
||||||
|
".local/share/Steam"
|
||||||
|
#".steam"
|
||||||
|
|
||||||
# Tools
|
# Tools
|
||||||
".ssh"
|
".ssh"
|
||||||
".local/share/gnupg"
|
".local/share/gnupg"
|
||||||
|
@ -221,6 +225,7 @@
|
||||||
python.enable = true;
|
python.enable = true;
|
||||||
};
|
};
|
||||||
games = {
|
games = {
|
||||||
|
steam.enable = true;
|
||||||
prismlauncher.enable = true;
|
prismlauncher.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -64,6 +64,7 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
games = {
|
games = {
|
||||||
|
steam.enable = mkEnableOption "Steam client";
|
||||||
prismlauncher.enable = mkEnableOption "PrismLauncher";
|
prismlauncher.enable = mkEnableOption "PrismLauncher";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,5 +4,6 @@
|
||||||
./physlock.nix
|
./physlock.nix
|
||||||
./thunar.nix
|
./thunar.nix
|
||||||
./virtualbox.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