From 5f5a9d5cd23e6ff7f877ec66b498bb02585a72b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20DOUIN?= Date: Fri, 19 Apr 2024 11:56:54 +0200 Subject: [PATCH] himalaya: make use of lib.getExe --- modules/programs/himalaya.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/programs/himalaya.nix b/modules/programs/himalaya.nix index 04a277019..563de0a53 100644 --- a/modules/programs/himalaya.nix +++ b/modules/programs/himalaya.nix @@ -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;