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/macros.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'modules/communication/neomutt/macros.nix') diff --git a/modules/communication/neomutt/macros.nix b/modules/communication/neomutt/macros.nix index 4e5bf7b..d4abf28 100644 --- a/modules/communication/neomutt/macros.nix +++ b/modules/communication/neomutt/macros.nix @@ -1,7 +1,10 @@ # neomutt macros for sync, URL extraction, flag legend, and quit { config, lib, ... }: +let + cfg = config.communication.neomutt; +in { - config.programs.neomutt.macros = lib.mkIf config.communication.neomutt.enable [ + config.programs.neomutt.macros = lib.mkIf cfg.enable [ { map = [ "index" -- cgit v1.2.3