From f36491c92269d3e1dd241e67c292af762ac498c3 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Thu, 24 Sep 2026 19:16:14 +0530 Subject: refactor: some more minor refactoring --- modules/communication/neomutt/mail/mbsync.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'modules/communication/neomutt/mail/mbsync.nix') diff --git a/modules/communication/neomutt/mail/mbsync.nix b/modules/communication/neomutt/mail/mbsync.nix index f586538..b93b134 100644 --- a/modules/communication/neomutt/mail/mbsync.nix +++ b/modules/communication/neomutt/mail/mbsync.nix @@ -5,6 +5,8 @@ ... }: let + cfg = config.communication.neomutt; + mbsyncNamesFromName = (import ../lib.nix { inherit lib; }).mbsyncNamesFromName; mbsyncValue = @@ -93,7 +95,7 @@ let ); in { - config = lib.mkIf config.communication.neomutt.enable { + config = lib.mkIf cfg.enable { programs.mbsync.enable = true; xdg.configFile."mbsync/.mbsyncrc".text = lib.concatStringsSep "\n" (map mbsyncAccount accounts); -- cgit v1.2.3