nix_config/sys/modules/steam.nix

31 lines
539 B
Nix
Raw Permalink Normal View History

2025-01-28 02:52:25 +01:00
{
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 = {
2025-01-28 06:17:54 +01:00
systemPackages = with pkgs; [
protontricks
protonup
protonup-ng
winetricks
];
2025-01-28 02:52:25 +01:00
};
};
}