Regenerated
This commit is contained in:
@@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user