diff --git a/hosts/buldak/features/default.nix b/hosts/buldak/features/default.nix index 5d61ddb..5bb232f 100644 --- a/hosts/buldak/features/default.nix +++ b/hosts/buldak/features/default.nix @@ -1,5 +1,7 @@ { imports = [ ./discord.nix + ./steam.nix + ./software.nix ]; } diff --git a/hosts/buldak/features/steam.nix b/hosts/buldak/features/steam.nix new file mode 100644 index 0000000..5f0549b --- /dev/null +++ b/hosts/buldak/features/steam.nix @@ -0,0 +1,17 @@ +{config, pkgs, lib, ...}: +{ + 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