mirror of
https://github.com/nix-community/home-manager
synced 2024-11-10 07:04:17 +00:00
clipmenu: add launcher option
This adds an option to set the launcher command for Clipmenu (which is set with the `CM_LAUNCHER` session variable).
This commit is contained in:
parent
4c8c1c9977
commit
3d3bbdfe95
1 changed files with 13 additions and 0 deletions
|
@ -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, <command>dmenu</command>
|
||||
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";
|
||||
|
|
Loading…
Reference in a new issue