From 4f094148f4bc6a4d8b20698c663e899404a4de2d Mon Sep 17 00:00:00 2001 From: harry123 Date: Wed, 12 Feb 2025 10:11:34 +0100 Subject: [PATCH 1/3] game related config --- hosts/goober/features/hardware/nvidia.nix | 2 +- hosts/goober/features/software/steam.nix | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 hosts/goober/features/software/steam.nix 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 From 0c2af247c903d7821ba8a8b4d2e9d23959fee1a0 Mon Sep 17 00:00:00 2001 From: harry123 Date: Wed, 12 Feb 2025 10:12:03 +0100 Subject: [PATCH 2/3] added steam to the list of programs to run --- hosts/goober/features/software/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/hosts/goober/features/software/default.nix b/hosts/goober/features/software/default.nix index f69c5e0..5e3e2d8 100644 --- a/hosts/goober/features/software/default.nix +++ b/hosts/goober/features/software/default.nix @@ -7,6 +7,7 @@ ./flatpak.nix ./discord.nix ./ollama.nix + ./steam.nix ]; } From e9adff9c686b5df7ea1b28d5dd0b4d0bdb8492fe Mon Sep 17 00:00:00 2001 From: harry123 Date: Wed, 12 Feb 2025 10:25:05 +0100 Subject: [PATCH 3/3] added missing import --- hosts/goober/features/software/steam.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/goober/features/software/steam.nix b/hosts/goober/features/software/steam.nix index 63d4bc4..5f0549b 100644 --- a/hosts/goober/features/software/steam.nix +++ b/hosts/goober/features/software/steam.nix @@ -1,4 +1,4 @@ -{config, pkgs, ...}: +{config, pkgs, lib, ...}: { programs.gamemode.enable = true;