1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2024-12-14 11:57:55 +00:00

himalaya: make use of lib.getExe

This commit is contained in:
Clément DOUIN 2024-04-19 11:56:54 +02:00
parent dac1fee0ce
commit d761492011
No known key found for this signature in database
GPG key ID: 353E4A18EE0FAB72

View file

@ -82,7 +82,7 @@ let
sendmailConfig =
lib.optionalAttrs (isNull account.smtp && !isNull account.msmtp) {
sender = "sendmail";
sendmail.cmd = "${pkgs.msmtp}/bin/msmtp";
sendmail.cmd = lib.getExe pkgs.msmtp;
};
config = lib.attrsets.mergeAttrsList [
@ -173,7 +173,7 @@ in {
Install = { WantedBy = [ "default.target" ]; };
Service = {
ExecStart =
"${himalaya.package}/bin/himalaya envelopes watch --account %I";
"${lib.getExe himalaya.package} envelopes watch --account %I";
ExecSearchPath = "/bin";
Environment =
lib.mapAttrsToList (key: val: "${key}=${val}") environment;