From 967812fe6168efbf27df3b0813cc778705f010ac Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 24 Sep 2024 00:29:20 +0000 Subject: [PATCH] Install steam. --- eshu/etc/nixos/configuration.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/eshu/etc/nixos/configuration.nix b/eshu/etc/nixos/configuration.nix index 382df17..1e09d6e 100644 --- a/eshu/etc/nixos/configuration.nix +++ b/eshu/etc/nixos/configuration.nix @@ -94,12 +94,26 @@ # Enable the OpenSSH daemon. services.openssh.enable = true; + nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ + "steam" + "steam-original" + "steam-run" + ]; + # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. networking.firewall.enable = false; + # Set up steam + 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 + }; + # Copy the NixOS configuration file and link it from the resulting system # (/run/current-system/configuration.nix). This is useful in case you # accidentally delete configuration.nix.