Unverified Commit f470616a authored by K900's avatar K900 Committed by GitHub
Browse files

nixos/steam: allow overriding args passed to Steam in session (#382376)

parents 668b92c1 4ded262f
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@ let
  in
    pkgs.writeShellScriptBin "steam-gamescope" ''
      ${builtins.concatStringsSep "\n" exports}
      gamescope --steam ${builtins.toString cfg.gamescopeSession.args} -- steam -tenfoot -pipewire-dmabuf
      gamescope --steam ${builtins.toString cfg.gamescopeSession.args} -- steam ${builtins.toString cfg.gamescopeSession.steamArgs}
    '';

  gamescopeSessionFile =
@@ -160,6 +160,17 @@ in {
              Environmental variables to be passed to GameScope for the session.
            '';
          };

          steamArgs = lib.mkOption {
            type = lib.types.listOf lib.types.str;
            default = [
              "-tenfoot"
              "-pipewire-dmabuf"
            ];
            description = ''
              Arguments to be passed to Steam for the session.
            '';
          };
        };
      };
    };