aboutsummaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-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;
+}