diff --git a/nixos/modules/programs/wayland/uwsm.nix b/nixos/modules/programs/wayland/uwsm.nix index cbabccb5d9c9..ee61c2ebad3e 100644 --- a/nixos/modules/programs/wayland/uwsm.nix +++ b/nixos/modules/programs/wayland/uwsm.nix @@ -16,7 +16,7 @@ let [Desktop Entry] Name=${opts.prettyName} (UWSM) Comment=${opts.comment} - Exec=${lib.getExe cfg.package} start -F ${opts.binPath} + Exec=${lib.getExe cfg.package} start -F -- ${opts.binPath} ${lib.strings.escapeShellArgs opts.extraArgs} Type=Application ''; destination = "/share/wayland-sessions/${opts.name}-uwsm.desktop"; @@ -84,6 +84,13 @@ in ''; example = "/run/current-system/sw/bin/ExampleCompositor"; }; + extraArgs = lib.mkOption { + type = with lib.types; listOf str; + default = [ ]; + description = '' + Extra command-line arguments pass to to the compsitor. + ''; + }; }; } ) @@ -117,7 +124,12 @@ in name: value: mk_uwsm_desktop_entry { inherit name; - inherit (value) prettyName comment binPath; + inherit (value) + prettyName + comment + binPath + extraArgs + ; } ) cfg.waylandCompositors; };