steam: initial commit and depoyment
This commit is contained in:
parent
afc69b424a
commit
5a546582a5
|
@ -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";
|
||||
|
|
19
profiles/steam.nix
Normal file
19
profiles/steam.nix
Normal 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"
|
||||
];
|
||||
}
|
Loading…
Reference in a new issue