browserpass: merge home.file entries with mergeAttrsList

The native-messaging host files were combined with a linear foldl' of //,
which recopies the accumulator on every step (O(n^2)). mergeAttrsList does
the same right-biased shallow merge with a balanced binary merge.
This commit is contained in:
Austin Horstman
2026-06-17 13:04:43 -05:00
parent 71b4b46f23
commit 9b262cb738
+1 -1
View File
@@ -32,7 +32,7 @@ in
};
config = lib.mkIf cfg.enable {
home.file = lib.foldl' (a: b: a // b) { } (
home.file = lib.mergeAttrsList (
lib.concatMap (
x:
with pkgs.stdenv;