From ca0c89900851906da9029019e2badde583c853ac Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Thu, 27 Apr 2023 11:59:05 -0600 Subject: [PATCH 1/2] nixos(steam): fix when gamescope isn't enabled --- nixos/modules/programs/steam.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/programs/steam.nix b/nixos/modules/programs/steam.nix index 28985b8db17c..78001116764e 100644 --- a/nixos/modules/programs/steam.nix +++ b/nixos/modules/programs/steam.nix @@ -84,6 +84,7 @@ in { gamescopeSession = mkOption { description = mdDoc "Run a GameScope driven Steam session from your display-manager"; + default = {}; type = types.submodule { options = { enable = mkEnableOption (mdDoc "GameScope Session"); From b866d85d5cd2d3f518a00a154513f520180cc3d5 Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Thu, 27 Apr 2023 11:59:25 -0600 Subject: [PATCH 2/2] nixos(steam): install steam-gamescope Allows to launch from a tty, in addition to display-manager. --- nixos/modules/programs/steam.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/programs/steam.nix b/nixos/modules/programs/steam.nix index 78001116764e..c63b31bde11f 100644 --- a/nixos/modules/programs/steam.nix +++ b/nixos/modules/programs/steam.nix @@ -136,7 +136,7 @@ in { environment.systemPackages = [ cfg.package cfg.package.run - ]; + ] ++ lib.optional cfg.gamescopeSession.enable steam-gamescope; networking.firewall = lib.mkMerge [ (mkIf cfg.remotePlay.openFirewall {