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.
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user