Commit f83a95ea73e0

Vincent Demeester <vincent@sbr.pm>
2026-01-15 12:12:55
fix(mail): set MUHOME environment variable in goimapnotify services
- Ensure mu index command can find the database location - Use config.programs.mu.home for correct path reference - Fixes mail indexing failures in goimapnotify-{icloud,redhat} services Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 1b5d1da
Changed files (1)
home
common
home/common/services/goimapnotify.nix
@@ -72,6 +72,9 @@ in
           ExecStart = "${pkgs.goimapnotify}/bin/goimapnotify -conf %h/.config/goimapnotify/${accountName}.yaml";
           Restart = "on-failure";
           RestartSec = "30s";
+          Environment = [
+            "MUHOME=${config.programs.mu.home}"
+          ];
         };
 
         Install = {