From ab89bd7fc180b742838a4883acbaf9ff47994695 Mon Sep 17 00:00:00 2001 From: Grey Jones Date: Sun, 30 Aug 2026 02:25:03 +0100 Subject: [PATCH] homeFilesFromStringAttrs: merge lists into single attrset --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 06ccc0d..5a55311 100644 --- a/flake.nix +++ b/flake.nix @@ -22,11 +22,11 @@ setAttrByStrPath = strPath: value: nixpkgs.lib.setAttrByPath (nixpkgs.lib.strings.splitString "." strPath) value; - homeFilesFromStringAttrs = { dir, attrs, exec ? false }: map (x: (map (y: { + homeFilesFromStringAttrs = { dir, attrs, exec ? false }: nixpkgs.lib.mergeAttrsList (map (x: nixpkgs.lib.mergeAttrsList (map (y: { "${dir}/${x}" = { text = y; executable = exec; }; - }) (builtins.attrValues attrs)) ) (builtins.attrNames attrs); + }) (builtins.attrValues attrs)) ) (builtins.attrNames attrs)); }; }