himalaya: make use of lib.getExe
This commit is contained in:
parent
1251ef424a
commit
ed33f985da
|
@ -82,7 +82,7 @@ let
|
||||||
sendmailConfig =
|
sendmailConfig =
|
||||||
lib.optionalAttrs (isNull account.smtp && !isNull account.msmtp) {
|
lib.optionalAttrs (isNull account.smtp && !isNull account.msmtp) {
|
||||||
sender = "sendmail";
|
sender = "sendmail";
|
||||||
sendmail.cmd = "${pkgs.msmtp}/bin/msmtp";
|
sendmail.cmd = lib.getExe pkgs.msmtp;
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.attrsets.mergeAttrsList [
|
config = lib.attrsets.mergeAttrsList [
|
||||||
|
@ -173,7 +173,7 @@ in {
|
||||||
Install = { WantedBy = [ "default.target" ]; };
|
Install = { WantedBy = [ "default.target" ]; };
|
||||||
Service = {
|
Service = {
|
||||||
ExecStart =
|
ExecStart =
|
||||||
"${himalaya.package}/bin/himalaya envelopes watch --account %I";
|
"${lib.getExe himalaya.package} envelopes watch --account %I";
|
||||||
ExecSearchPath = "/bin";
|
ExecSearchPath = "/bin";
|
||||||
Environment =
|
Environment =
|
||||||
lib.mapAttrsToList (key: val: "${key}=${val}") environment;
|
lib.mapAttrsToList (key: val: "${key}=${val}") environment;
|
||||||
|
|
Loading…
Reference in a new issue