aboutsummaryrefslogtreecommitdiff
path: root/hosts/herra/steam.nix
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-04-07 10:50:26 +0200
committerNatasha Moongrave <natasha@256phi.eu>2026-04-07 10:50:26 +0200
commit4d5f8981a42e6dd3a6eac394de9b88b5a978b31a (patch)
treee928f252e99797c887d20b917fe1cf0748ab4002 /hosts/herra/steam.nix
parenteb829b1ce708c7fbf1b61e2c2478e266d35a4a81 (diff)
Added steam configuration to herra
Diffstat (limited to 'hosts/herra/steam.nix')
-rw-r--r--hosts/herra/steam.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/hosts/herra/steam.nix b/hosts/herra/steam.nix
new file mode 100644
index 0000000..a916af3
--- /dev/null
+++ b/hosts/herra/steam.nix
@@ -0,0 +1,21 @@
+{lib, ...}: {
+ 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
+ localNetworkGameTransfers.openFirewall = true; # Open ports in the firewall for Steam Local Network Game Transfers
+ };
+
+ nixpkgs.config.allowUnfreePredicate = pkg:
+ builtins.elem (lib.getName pkg) [
+ # Allow some unfree dependencies
+ "steam"
+ "steam-original"
+ "steam-unwrapped"
+ "steam-run"
+ ];
+
+ # Allow steam to execute appimage games
+ programs.appimage.enable = true;
+ programs.appimage.binfmt = true;
+}