Regenerated
This commit is contained in:
@@ -13,17 +13,18 @@ let
|
||||
gatherFiles = dir:
|
||||
let
|
||||
entries = builtins.attrNames (builtins.readDir dir);
|
||||
files = lib.concatMap (e:
|
||||
let
|
||||
path = "${dir}/${e}";
|
||||
in if builtins.pathInfo path.type == "directory"
|
||||
then gatherFiles path
|
||||
else [{
|
||||
name = ".config/hypr/${builtins.replaceStrings [ "${assetPath}/" ] [ "" ] path}";
|
||||
value = { source = path; };
|
||||
}]
|
||||
) entries;
|
||||
in files;
|
||||
in lib.concatMap (e:
|
||||
let
|
||||
path = "${dir}/${e}";
|
||||
# readDir geeft een attributenset, directories hebben type "directory"
|
||||
stat = builtins.readDir path;
|
||||
in if stat != {} then
|
||||
gatherFiles path
|
||||
else [{
|
||||
name = ".config/hypr/${builtins.replaceStrings [ "${assetPath}/" ] [ "" ] path}";
|
||||
value = { source = path; };
|
||||
}]
|
||||
) entries;
|
||||
|
||||
hyprFilesAttrs = lib.listToAttrs (gatherFiles assetPath);
|
||||
|
||||
@@ -33,7 +34,7 @@ in
|
||||
|
||||
home-manager.users = {
|
||||
${username} = {
|
||||
# Place all files (and subdirectories) into ~/.config/hypr/
|
||||
# Place all files (including subdirectories) into ~/.config/hypr/
|
||||
home.file = hyprFilesAttrs;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user