nixos/workflows/a-happy-gnome: add autostart Kando extra arguments module option

This commit is contained in:
Gabriel Arazas 2025-04-25 19:48:50 +08:00
parent 2614280b9e
commit 8bb50749f9
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -12,14 +12,6 @@ let
# The application launcher for your one-handed keyboard handling (the # The application launcher for your one-handed keyboard handling (the
# other is in the mouse, if you're thinking something else). # other is in the mouse, if you're thinking something else).
kando 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...ines 'tis season to share... phone data or something.
valent 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 = { paperwm = {
workspaces = lib.mkOption { workspaces = lib.mkOption {
type = with lib.types; attrsOf (submodule workspaceSubmodule); type = with lib.types; attrsOf (submodule workspaceSubmodule);
@ -235,6 +238,16 @@ in {
desktopManager.gnome.enable = true; 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 = workflows.workflows.a-happy-gnome.paperwm.workspaces =
lib.mkIf cfg.paperwm.enablePresetWorkspaces { lib.mkIf cfg.paperwm.enablePresetWorkspaces {
media = { media = {