Regenerated

This commit is contained in:
2026-03-30 00:16:17 +00:00
parent eeca838ec2
commit 910875e446
3 changed files with 309 additions and 318 deletions
+295 -298
View File
File diff suppressed because it is too large Load Diff
+7 -10
View File
@@ -1829,24 +1829,23 @@ let
pkgs.hyprland-git or
inputs.hyprland.packages.${pkgs.system}.default;
# Recursively read directory and generate Home Manager file entries
readDirRecursive = dir:
# Function to recursively gather files as Home Manager entries
gatherFiles = dir:
let
entries = builtins.attrNames (builtins.readDir dir);
files = lib.concatMap (e:
let
path = "${dir}/${e}";
stat = builtins.pathInfo path;
in if stat.type == "directory"
then readDirRecursive path
in if builtins.pathExists path && builtins.pathInfo path.type == "directory"
then gatherFiles path
else [{
name = ".config/hypr/${builtins.substring (builtins.stringLength assetPath + 1) (builtins.stringLength path - (builtins.stringLength assetPath + 1)) path}";
name = ".config/hypr/${builtins.replaceStrings [ assetPath + "/" ] [ "" ] path}";
value = { source = path; };
}]
) entries;
in files;
hyprFilesAttrs = lib.listToAttrs (readDirRecursive assetPath);
hyprFilesAttrs = lib.listToAttrs (gatherFiles assetPath);
in
{
@@ -1854,10 +1853,8 @@ in
home-manager.users = {
${username} = {
# Place all files (and subdirectories) into ~/.config/hypr/
home.file = hyprFilesAttrs;
# Optional Hyprland settings
settings.general."col.active_border" = "0xff97cbcd 0xff89b4fa";
};
};
}
@@ -9,24 +9,23 @@ let
pkgs.hyprland-git or
inputs.hyprland.packages.${pkgs.system}.default;
# Recursively read directory and generate Home Manager file entries
readDirRecursive = dir:
# Function to recursively gather files as Home Manager entries
gatherFiles = dir:
let
entries = builtins.attrNames (builtins.readDir dir);
files = lib.concatMap (e:
let
path = "${dir}/${e}";
stat = builtins.pathInfo path;
in if stat.type == "directory"
then readDirRecursive path
in if builtins.pathExists path && builtins.pathInfo path.type == "directory"
then gatherFiles path
else [{
name = ".config/hypr/${builtins.substring (builtins.stringLength assetPath + 1) (builtins.stringLength path - (builtins.stringLength assetPath + 1)) path}";
name = ".config/hypr/${builtins.replaceStrings [ assetPath + "/" ] [ "" ] path}";
value = { source = path; };
}]
) entries;
in files;
hyprFilesAttrs = lib.listToAttrs (readDirRecursive assetPath);
hyprFilesAttrs = lib.listToAttrs (gatherFiles assetPath);
in
{
@@ -34,10 +33,8 @@ in
home-manager.users = {
${username} = {
# Place all files (and subdirectories) into ~/.config/hypr/
home.file = hyprFilesAttrs;
# Optional Hyprland settings
settings.general."col.active_border" = "0xff97cbcd 0xff89b4fa";
};
};
}