getmail: merge home.file entries with mergeAttrsList

Per-account config files were combined with a linear foldl' of //.
mergeAttrsList performs the equivalent shallow merge without the quadratic
accumulator recopy.
This commit is contained in:
Austin Horstman
2026-06-17 13:04:43 -05:00
parent 9b262cb738
commit b06723c4d4
+1 -1
View File
@@ -64,7 +64,7 @@ in
(lib.hm.assertions.assertPlatform "programs.getmail" pkgs lib.platforms.linux)
];
home.file = lib.foldl' (a: b: a // b) { } (
home.file = lib.mergeAttrsList (
map (a: { "${renderConfigFilepath a}".text = renderAccountConfig a; }) accounts
);
};