diff --git a/hosts/goober/features/hardware/nvidia.nix b/hosts/goober/features/hardware/nvidia.nix index 2272c6b..70e0d77 100644 --- a/hosts/goober/features/hardware/nvidia.nix +++ b/hosts/goober/features/hardware/nvidia.nix @@ -1,4 +1,4 @@ -{config, pkgs}: +{config, pkgs, ...}: { diff --git a/hosts/goober/features/software/steam.nix b/hosts/goober/features/software/steam.nix new file mode 100644 index 0000000..63d4bc4 --- /dev/null +++ b/hosts/goober/features/software/steam.nix @@ -0,0 +1,17 @@ +{config, pkgs, ...}: +{ + programs.gamemode.enable = true; + + programs.steam = { + enable = true; + remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play + dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server + }; + + nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ + "steam" + "steam-unwrapped" + "steam-original" + "steam-run" + ]; +} \ No newline at end of file