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
+301 -300
View File
File diff suppressed because it is too large Load Diff
+13 -12
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;
else [{ in if stat != {} then
name = ".config/hypr/${builtins.replaceStrings [ "${assetPath}/" ] [ "" ] path}"; gatherFiles path
value = { source = path; }; else [{
}] name = ".config/hypr/${builtins.replaceStrings [ "${assetPath}/" ] [ "" ] path}";
) entries; value = { source = path; };
in files; }]
) entries;
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;
else [{ in if stat != {} then
name = ".config/hypr/${builtins.replaceStrings [ "${assetPath}/" ] [ "" ] path}"; gatherFiles path
value = { source = path; }; else [{
}] name = ".config/hypr/${builtins.replaceStrings [ "${assetPath}/" ] [ "" ] path}";
) entries; value = { source = path; };
in files; }]
) entries;
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;
}; };
}; };