From 50978d4bf61bc70a291a2ea97134b15ffab386af Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Mon, 15 Jun 2026 21:15:17 -0500 Subject: [PATCH] neomutt: merge account rc files with mergeAttrsList Per-account rc files were combined with a linear foldl' of //. mergeAttrsList is the equivalent shallow merge without the quadratic accumulator recopy. --- modules/programs/neomutt/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/programs/neomutt/default.nix b/modules/programs/neomutt/default.nix index 80a7f8ad..08ccf192 100644 --- a/modules/programs/neomutt/default.nix +++ b/modules/programs/neomutt/default.nix @@ -498,7 +498,7 @@ in "${accountFilename account}".text = accountStr account; }; in - lib.foldl' (a: b: a // b) { } (map rcFile neomuttAccounts); + lib.mergeAttrsList (map rcFile neomuttAccounts); xdg.configFile."neomutt/neomuttrc" = mkIf (neomuttAccounts != [ ]) { text =