mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
cliphist: add clipboardPackage
Allow customizig which clipboard package to use with the cliphist service. Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
parent
847669dabf
commit
673e47bb86
1 changed files with 6 additions and 2 deletions
|
|
@ -29,6 +29,10 @@ in
|
|||
|
||||
package = lib.mkPackageOption pkgs "cliphist" { };
|
||||
|
||||
clipboardPackage = lib.mkPackageOption pkgs "wl-clipboard" {
|
||||
example = "pkgs.wl-clipboard-rs";
|
||||
};
|
||||
|
||||
allowImages = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
|
|
@ -87,7 +91,7 @@ in
|
|||
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "${lib.getExe' pkgs.wl-clipboard "wl-paste"} --watch ${lib.getExe cfg.package} ${extraOptionsStr} store";
|
||||
ExecStart = "${lib.getExe' cfg.clipboardPackage "wl-paste"} --watch ${lib.getExe cfg.package} ${extraOptionsStr} store";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
|
||||
|
|
@ -105,7 +109,7 @@ in
|
|||
|
||||
Service = {
|
||||
Type = "simple";
|
||||
ExecStart = "${lib.getExe' pkgs.wl-clipboard "wl-paste"} --type image --watch ${lib.getExe cfg.package} ${extraOptionsStr} store";
|
||||
ExecStart = "${lib.getExe' cfg.clipboardPackage "wl-paste"} --type image --watch ${lib.getExe cfg.package} ${extraOptionsStr} store";
|
||||
Restart = "on-failure";
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue