From ff6212ce44de0d74956a5d67e69fff67dac56561 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Tue, 25 Mar 2025 15:59:30 -0500 Subject: [PATCH] davmail: add package option --- modules/services/davmail.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/services/davmail.nix b/modules/services/davmail.nix index 5eb2f80a2..a58a2fea7 100644 --- a/modules/services/davmail.nix +++ b/modules/services/davmail.nix @@ -19,6 +19,8 @@ in { enable = mkEnableOption "DavMail, an MS Exchange gateway."; + package = lib.mkPackageOption pkgs "davmail" { }; + imitateOutlook = mkOption { type = types.bool; default = false; @@ -91,7 +93,7 @@ in { Install.WantedBy = [ "graphical-session.target" ]; Service = { Type = "simple"; - ExecStart = "${pkgs.davmail}/bin/davmail ${settingsFile}"; + ExecStart = "${lib.getExe cfg.package} ${settingsFile}"; Restart = "on-failure"; CapabilityBoundingSet = [ "" ]; @@ -121,8 +123,6 @@ in { }; }; - home.packages = [ pkgs.davmail ]; - + home.packages = [ cfg.package ]; }; - }