commit 8ad3bef5e673e56c9b8d19b6d5980f286fd07e3a
parent 836ae2292b8f377e4db2f6c6839b368fe594fba1
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Tue, 26 Aug 2025 12:45:52 +0200
parent 836ae2292b8f377e4db2f6c6839b368fe594fba1
Author: Katja Ramona Sophie Kwast (zaphyra) <git@zaphyra.eu>
Date: Tue, 26 Aug 2025 12:45:52 +0200
overlays: use sub-directories
2 files changed, 1 insertion(+), 1 deletion(-)
diff --git a/overlays/default.nix b/overlays/default.nix @@ -6,7 +6,7 @@ builtins.foldl' (x: f: f x) (builtins.readDir ./.) [ (builtins.filter (name: name != "default.nix")) # map the list to a name-value pair with a name that has the last 4 chars (".nix") stripped, and a value that is the contents of that given file (builtins.map (name: { - name = builtins.substring 0 ((builtins.stringLength name) - 4) name; + inherit name; value = import ./${name}; })) # convert the resulting list to an attribute set