Regenerated

This commit is contained in:
2026-03-30 00:19:52 +00:00
parent d56d23ad37
commit 44478b96f3
3 changed files with 327 additions and 324 deletions
+294 -293
View File
File diff suppressed because it is too large Load Diff
+6 -5
View File
@@ -1833,17 +1833,18 @@ let
gatherFiles = dir: gatherFiles = dir:
let let
entries = builtins.attrNames (builtins.readDir dir); entries = builtins.attrNames (builtins.readDir dir);
files = lib.concatMap (e: in lib.concatMap (e:
let let
path = "${dir}/${e}"; path = "${dir}/${e}";
in if builtins.pathInfo path.type == "directory" # readDir geeft een attributenset, directories hebben type "directory"
then gatherFiles path stat = builtins.readDir path;
in if stat != {} then
gatherFiles path
else [{ else [{
name = ".config/hypr/${builtins.replaceStrings [ "${assetPath}/" ] [ "" ] path}"; name = ".config/hypr/${builtins.replaceStrings [ "${assetPath}/" ] [ "" ] path}";
value = { source = path; }; value = { source = path; };
}] }]
) entries; ) entries;
in files;
hyprFilesAttrs = lib.listToAttrs (gatherFiles assetPath); hyprFilesAttrs = lib.listToAttrs (gatherFiles assetPath);
@@ -1853,7 +1854,7 @@ in
home-manager.users = { home-manager.users = {
${username} = { ${username} = {
# Place all files (and subdirectories) into ~/.config/hypr/ # Place all files (including subdirectories) into ~/.config/hypr/
home.file = hyprFilesAttrs; home.file = hyprFilesAttrs;
}; };
}; };
@@ -13,17 +13,18 @@ let
gatherFiles = dir: gatherFiles = dir:
let let
entries = builtins.attrNames (builtins.readDir dir); entries = builtins.attrNames (builtins.readDir dir);
files = lib.concatMap (e: in lib.concatMap (e:
let let
path = "${dir}/${e}"; path = "${dir}/${e}";
in if builtins.pathInfo path.type == "directory" # readDir geeft een attributenset, directories hebben type "directory"
then gatherFiles path stat = builtins.readDir path;
in if stat != {} then
gatherFiles path
else [{ else [{
name = ".config/hypr/${builtins.replaceStrings [ "${assetPath}/" ] [ "" ] path}"; name = ".config/hypr/${builtins.replaceStrings [ "${assetPath}/" ] [ "" ] path}";
value = { source = path; }; value = { source = path; };
}] }]
) entries; ) entries;
in files;
hyprFilesAttrs = lib.listToAttrs (gatherFiles assetPath); hyprFilesAttrs = lib.listToAttrs (gatherFiles assetPath);
@@ -33,7 +34,7 @@ in
home-manager.users = { home-manager.users = {
${username} = { ${username} = {
# Place all files (and subdirectories) into ~/.config/hypr/ # Place all files (including subdirectories) into ~/.config/hypr/
home.file = hyprFilesAttrs; home.file = hyprFilesAttrs;
}; };
}; };