1
0
Fork 0
forked from fabian/nix_config
nix_config_fabian/sys/modules/steam.nix
2025-01-27 19:52:25 -06:00

32 lines
557 B
Nix

{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.local.sys.steam;
in {
options.local.sys.steam = {
enable = mkEnableOption "steam settings";
};
config = mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
};
environment = {
systemPackages = with pkgs;
[
protontricks
protonup
protonup-ng
winetricks
];
};
};
}