steam: initial commit and depoyment

This commit is contained in:
Serĉanto de Scio 2024-03-05 11:48:01 +10:00
parent afc69b424a
commit 5a546582a5
Signed by: sercanto
GPG key ID: A4122FF3971B6865
2 changed files with 20 additions and 0 deletions

View file

@ -7,6 +7,7 @@
imports = [ imports = [
../hardware/purism_librem_15.nix # Include results of the hardware scan. ../hardware/purism_librem_15.nix # Include results of the hardware scan.
../profiles/desktop_common.nix ../profiles/desktop_common.nix
../profiles/steam.nix
]; ];
deployment.targetHost = "10.42.0.190"; deployment.targetHost = "10.42.0.190";

19
profiles/steam.nix Normal file
View file

@ -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"
];
}