From bf2768c20119bc7e07716f7bea784044a57d92b1 Mon Sep 17 00:00:00 2001 From: Don Harper Date: Fri, 14 Jun 2024 07:06:15 -0500 Subject: [PATCH] move steam to a sub-include --- hosts/eve/default.nix | 1 + hosts/loki/default.nix | 1 + hosts/workstation/default.nix | 13 ------------- hosts/workstation/games/default.nix | 18 ++++++++++++++++++ 4 files changed, 20 insertions(+), 13 deletions(-) create mode 100644 hosts/workstation/games/default.nix diff --git a/hosts/eve/default.nix b/hosts/eve/default.nix index d7a0bc6..72a1a43 100644 --- a/hosts/eve/default.nix +++ b/hosts/eve/default.nix @@ -8,6 +8,7 @@ ./hardware-configuration.nix # ../disko/mmcblk.nix ../workstation + ../workstation/games ../themes.nix ../wm ]; diff --git a/hosts/loki/default.nix b/hosts/loki/default.nix index b760376..f8cfd44 100644 --- a/hosts/loki/default.nix +++ b/hosts/loki/default.nix @@ -9,6 +9,7 @@ # ../disko/nvme.nix ../workstation ../workstation/kvm.nix + ../workstation/games ../wm ../themes.nix ]; diff --git a/hosts/workstation/default.nix b/hosts/workstation/default.nix index 76751fb..f7a69a6 100644 --- a/hosts/workstation/default.nix +++ b/hosts/workstation/default.nix @@ -225,7 +225,6 @@ in poppler_utils pulseaudio ruby - # steam udiskie wireplumber wlsunset @@ -235,18 +234,6 @@ in ]; programs = { - # GAMES! - steam = { - enable = true; - gamescopeSession.enable = true; - # # Open ports in the firewall for Steam Remote Play - # remotePlay.openFirewall = true; - # # Open ports in the firewall for Source Dedicated Server - # dedicatedServer.openFirewall = true; - }; - gamemode = { - enable = true; - }; dconf = { enable = true; }; diff --git a/hosts/workstation/games/default.nix b/hosts/workstation/games/default.nix new file mode 100644 index 0000000..d878536 --- /dev/null +++ b/hosts/workstation/games/default.nix @@ -0,0 +1,18 @@ +{ inputs, outputs, lib, config, pkgs, ... }: + +{ + programs = { + # GAMES! + steam = { + enable = true; + gamescopeSession.enable = true; + # # Open ports in the firewall for Steam Remote Play + # remotePlay.openFirewall = true; + # # Open ports in the firewall for Source Dedicated Server + # dedicatedServer.openFirewall = true; + }; + gamemode = { + enable = true; + }; + }; +}