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:
@@ -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
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user