Commit de7c2da39a2e
Changed files (2)
home
common
services
home/common/services/goimapnotify.nix
@@ -6,33 +6,34 @@
}:
let
# Helper function to create goimapnotify config for an account
- mkAccountConfig = accountName: accountConfig:
+ mkAccountConfig =
+ accountName: accountConfig:
let
# Handle null port values - if port is null or not set, use 993
imapPort = if accountConfig.imap.port != null then accountConfig.imap.port else 993;
in
''
- host: ${accountConfig.imap.host}
- port: ${toString imapPort}
- tls: true
- tlsOptions:
- rejectUnauthorized: true
- username: ${accountConfig.userName}
- passwordCmd: ${lib.strings.concatStringsSep " " accountConfig.passwordCommand}
+ host: ${accountConfig.imap.host}
+ port: ${toString imapPort}
+ tls: true
+ tlsOptions:
+ rejectUnauthorized: true
+ username: ${accountConfig.userName}
+ passwordCmd: ${lib.strings.concatStringsSep " " accountConfig.passwordCommand}
- # Monitor INBOX for new mail
- boxes:
- - INBOX
+ # Monitor INBOX for new mail
+ boxes:
+ - INBOX
- # Sync mail when new messages arrive
- # Smart indexing: use emacsclient if mu4e is running (to avoid lock conflicts)
- onNewMail: |
- ${pkgs.isync}/bin/mbsync ${accountName}
- if ${pkgs.procps}/bin/pgrep -u $UID mu >/dev/null 2>&1; then
- ${pkgs.emacs}/bin/emacsclient --eval '(mu4e-update-index)' 2>/dev/null || true
- else
- ${pkgs.mu}/bin/mu index --quiet
- fi
+ # Sync mail when new messages arrive
+ # Smart indexing: use emacsclient if mu4e is running (to avoid lock conflicts)
+ onNewMail: |
+ ${pkgs.isync}/bin/mbsync ${accountName}
+ if ${pkgs.procps}/bin/pgrep -u $UID mu >/dev/null 2>&1; then
+ ${pkgs.emacs}/bin/emacsclient --eval '(mu4e-update-index)' 2>/dev/null || true
+ else
+ ${pkgs.mu}/bin/mu index --quiet
+ fi
'';
# Get enabled email accounts that have mbsync enabled
home/common/services/redhat.nix
@@ -1,5 +1,4 @@
-{ ... }:
-{
+_: {
# Red Hat VPN desktop launchers
home.file.".local/share/applications/redhat-vpn.desktop".source = ./redhat-vpn.desktop;
home.file.".local/share/applications/redhat-vpn-disconnect.desktop".source =