mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 07:29:43 +00:00
20 lines
427 B
Nix
20 lines
427 B
Nix
|
{
|
||
|
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;
|
||
|
};
|
||
|
};
|
||
|
}
|
||
|
|