From 5a546582a5578a9e5625a56dca3ccd5aa4f610fb Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Tue, 5 Mar 2024 11:48:01 +1000 Subject: [PATCH] steam: initial commit and depoyment --- hosts/dionach.nix | 1 + profiles/steam.nix | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 profiles/steam.nix diff --git a/hosts/dionach.nix b/hosts/dionach.nix index 1b1238d..fd6522e 100644 --- a/hosts/dionach.nix +++ b/hosts/dionach.nix @@ -7,6 +7,7 @@ imports = [ ../hardware/purism_librem_15.nix # Include results of the hardware scan. ../profiles/desktop_common.nix + ../profiles/steam.nix ]; deployment.targetHost = "10.42.0.190"; diff --git a/profiles/steam.nix b/profiles/steam.nix new file mode 100644 index 0000000..edd4210 --- /dev/null +++ b/profiles/steam.nix @@ -0,0 +1,19 @@ +# Steam configuration for NixOS +{ + config, + lib, + pkgs, + ... +}: { + 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-original" + "steam-run" + ]; +}