diff --git a/modules/services/clipmenu.nix b/modules/services/clipmenu.nix index 3f2055c9a..4bb8916f1 100644 --- a/modules/services/clipmenu.nix +++ b/modules/services/clipmenu.nix @@ -18,6 +18,16 @@ in { defaultText = "pkgs.clipmenu"; description = "clipmenu derivation to use."; }; + + launcher = mkOption { + type = types.nullOr types.str; + default = null; + example = "rofi"; + description = '' + Launcher command, if not set, dmenu + will be used by default. + ''; + }; }; config = mkIf cfg.enable { @@ -28,6 +38,9 @@ in { home.packages = [ cfg.package ]; + home.sessionVariables = + mkIf (cfg.launcher != null) { CM_LAUNCHER = cfg.launcher; }; + systemd.user.services.clipmenu = { Unit = { Description = "Clipboard management daemon";