add steam module

sadly this has to be a system package until we find a non shitty way of
installing in through hm
This commit is contained in:
Fabian Montero 2025-01-27 19:57:02 -06:00
parent 6d0c611eae
commit 6325f6266e
Signed by: fabian
GPG key ID: 1FFAC35E1798174F
2 changed files with 40 additions and 1 deletions

View file

@ -1 +1,10 @@
{} {
config,
lib,
pkgs,
...
}: {
imports = [
./steam.nix
];
}

30
nixos/steam.nix Normal file
View file

@ -0,0 +1,30 @@
{
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
];
};
};
}