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

K900 f470616a 668b92c1

Changed files
+12 -1
nixos
modules
programs
+12 -1
nixos/modules/programs/steam.nix
···
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 =
···
default = { };
description = ''
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.
'';
};
};