From 398e54d075e5a812de21351f679e9fdc76828058 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Sat, 15 Jun 2024 23:19:33 -0400 Subject: [PATCH] steam: improvedm odule defaults + support for gamescope session --- nixosModules/apps/steam/default.nix | 12 ++++++------ nixosModules/options.nix | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/nixosModules/apps/steam/default.nix b/nixosModules/apps/steam/default.nix index 26aeb384..74b9093b 100644 --- a/nixosModules/apps/steam/default.nix +++ b/nixosModules/apps/steam/default.nix @@ -7,14 +7,14 @@ config = lib.mkIf config.alyraffauf.apps.steam.enable { hardware.steam-hardware.enable = true; programs = { - gamescope.enable = true; + gamescope.enable = config.alyraffauf.desktop.steam.enable; + steam = { enable = true; - gamescopeSession.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 + dedicatedServer.openFirewall = true; + gamescopeSession.enable = config.alyraffauf.desktop.steam.enable; + localNetworkGameTransfers.openFirewall = true; + remotePlay.openFirewall = true; }; }; }; diff --git a/nixosModules/options.nix b/nixosModules/options.nix index 1579b405..e24295d3 100644 --- a/nixosModules/options.nix +++ b/nixosModules/options.nix @@ -180,6 +180,8 @@ "Lightdm and slick greeter with Catppuccin theme."; plasma.enable = lib.mkEnableOption "Plasma desktop session."; + steam.enable = + lib.mkEnableOption "Steam + Gamescope session."; sway.enable = lib.mkEnableOption "Sway wayland session."; waylandComp = lib.mkOption {