diff --git a/modules/nixos/_private/workflows/a-happy-gnome/default.nix b/modules/nixos/_private/workflows/a-happy-gnome/default.nix index cbd3a5eb..3f47acdf 100644 --- a/modules/nixos/_private/workflows/a-happy-gnome/default.nix +++ b/modules/nixos/_private/workflows/a-happy-gnome/default.nix @@ -12,14 +12,6 @@ let # The application launcher for your one-handed keyboard handling (the # other is in the mouse, if you're thinking something else). kando - (makeDesktopItem { - name = "kando"; - desktopName = "Kando"; - destination = "/etc/xdg/autostart"; - exec = "${lib.getExe kando} --gapplication-service"; - icon = "kando"; - genericName = "Pie Menu"; - }) # Valent...ines 'tis season to share... phone data or something. valent @@ -164,6 +156,17 @@ in { ]; }; + kando = { + extraArgs = lib.mkOption { + type = with lib.types; listOf str; + default = [ ]; + description = '' + A list of extra arguments to be added to Kando autostart service. + ''; + example = [ "--settings" ]; + }; + }; + paperwm = { workspaces = lib.mkOption { type = with lib.types; attrsOf (submodule workspaceSubmodule); @@ -235,6 +238,16 @@ in { desktopManager.gnome.enable = true; }; + xdg.autostart.entries = { + "${workflowName}-kando" = { + name = "kando"; + desktopName = "Kando"; + exec = "${lib.getExe pkgs.kando} --gapplication-service ${lib.concatStringsSep " " cfg.kando.extraArgs}"; + icon = "kando"; + genericName = "Pie Menu"; + }; + }; + workflows.workflows.a-happy-gnome.paperwm.workspaces = lib.mkIf cfg.paperwm.enablePresetWorkspaces { media = {