cliphist: use lib.getExe (#7431)

This commit is contained in:
Yiheng He
2025-07-11 23:15:37 +08:00
committed by GitHub
parent fab659b346
commit ce15001862

View File

@@ -86,7 +86,7 @@ in
Service = {
Type = "simple";
ExecStart = "${pkgs.wl-clipboard}/bin/wl-paste --watch ${cfg.package}/bin/cliphist ${extraOptionsStr} store";
ExecStart = "${lib.getExe' pkgs.wl-clipboard "wl-paste"} --watch ${lib.getExe cfg.package} ${extraOptionsStr} store";
Restart = "on-failure";
};
@@ -104,7 +104,7 @@ in
Service = {
Type = "simple";
ExecStart = "${pkgs.wl-clipboard}/bin/wl-paste --type image --watch ${cfg.package}/bin/cliphist ${extraOptionsStr} store";
ExecStart = "${lib.getExe' pkgs.wl-clipboard "wl-paste"} --type image --watch ${lib.getExe cfg.package} ${extraOptionsStr} store";
Restart = "on-failure";
};