Commit 8eb8241bccfa

Vincent Demeester <vincent@sbr.pm>
2026-01-14 22:10:00
fix(mail): Convert passwordCommand list to string in goimapnotify
home-manager's email account passwordCommand is stored as a list, not a string. Join the list elements with spaces to create the command string for goimapnotify's passwordCmd field.
1 parent f96f813
Changed files (1)
home
common
home/common/services/goimapnotify.nix
@@ -1,6 +1,7 @@
 {
   pkgs,
   config,
+  lib,
   ...
 }:
 let
@@ -12,7 +13,7 @@ let
     tlsOptions:
       rejectUnauthorized: true
     username: ${accountConfig.userName}
-    passwordCmd: ${accountConfig.passwordCommand}
+    passwordCmd: ${lib.strings.concatStringsSep " " accountConfig.passwordCommand}
 
     # Monitor INBOX for new mail
     boxes: