Regenerated
This commit is contained in:
+295
-298
File diff suppressed because it is too large
Load Diff
+7
-10
@@ -1829,24 +1829,23 @@ let
|
|||||||
pkgs.hyprland-git or
|
pkgs.hyprland-git or
|
||||||
inputs.hyprland.packages.${pkgs.system}.default;
|
inputs.hyprland.packages.${pkgs.system}.default;
|
||||||
|
|
||||||
# Recursively read directory and generate Home Manager file entries
|
# Function to recursively gather files as Home Manager entries
|
||||||
readDirRecursive = dir:
|
gatherFiles = dir:
|
||||||
let
|
let
|
||||||
entries = builtins.attrNames (builtins.readDir dir);
|
entries = builtins.attrNames (builtins.readDir dir);
|
||||||
files = lib.concatMap (e:
|
files = lib.concatMap (e:
|
||||||
let
|
let
|
||||||
path = "${dir}/${e}";
|
path = "${dir}/${e}";
|
||||||
stat = builtins.pathInfo path;
|
in if builtins.pathExists path && builtins.pathInfo path.type == "directory"
|
||||||
in if stat.type == "directory"
|
then gatherFiles path
|
||||||
then readDirRecursive path
|
|
||||||
else [{
|
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; };
|
value = { source = path; };
|
||||||
}]
|
}]
|
||||||
) entries;
|
) entries;
|
||||||
in files;
|
in files;
|
||||||
|
|
||||||
hyprFilesAttrs = lib.listToAttrs (readDirRecursive assetPath);
|
hyprFilesAttrs = lib.listToAttrs (gatherFiles assetPath);
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@@ -1854,10 +1853,8 @@ in
|
|||||||
|
|
||||||
home-manager.users = {
|
home-manager.users = {
|
||||||
${username} = {
|
${username} = {
|
||||||
|
# Place all files (and subdirectories) into ~/.config/hypr/
|
||||||
home.file = hyprFilesAttrs;
|
home.file = hyprFilesAttrs;
|
||||||
|
|
||||||
# Optional Hyprland settings
|
|
||||||
settings.general."col.active_border" = "0xff97cbcd 0xff89b4fa";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,24 +9,23 @@ let
|
|||||||
pkgs.hyprland-git or
|
pkgs.hyprland-git or
|
||||||
inputs.hyprland.packages.${pkgs.system}.default;
|
inputs.hyprland.packages.${pkgs.system}.default;
|
||||||
|
|
||||||
# Recursively read directory and generate Home Manager file entries
|
# Function to recursively gather files as Home Manager entries
|
||||||
readDirRecursive = dir:
|
gatherFiles = dir:
|
||||||
let
|
let
|
||||||
entries = builtins.attrNames (builtins.readDir dir);
|
entries = builtins.attrNames (builtins.readDir dir);
|
||||||
files = lib.concatMap (e:
|
files = lib.concatMap (e:
|
||||||
let
|
let
|
||||||
path = "${dir}/${e}";
|
path = "${dir}/${e}";
|
||||||
stat = builtins.pathInfo path;
|
in if builtins.pathExists path && builtins.pathInfo path.type == "directory"
|
||||||
in if stat.type == "directory"
|
then gatherFiles path
|
||||||
then readDirRecursive path
|
|
||||||
else [{
|
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; };
|
value = { source = path; };
|
||||||
}]
|
}]
|
||||||
) entries;
|
) entries;
|
||||||
in files;
|
in files;
|
||||||
|
|
||||||
hyprFilesAttrs = lib.listToAttrs (readDirRecursive assetPath);
|
hyprFilesAttrs = lib.listToAttrs (gatherFiles assetPath);
|
||||||
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
@@ -34,10 +33,8 @@ in
|
|||||||
|
|
||||||
home-manager.users = {
|
home-manager.users = {
|
||||||
${username} = {
|
${username} = {
|
||||||
|
# Place all files (and subdirectories) into ~/.config/hypr/
|
||||||
home.file = hyprFilesAttrs;
|
home.file = hyprFilesAttrs;
|
||||||
|
|
||||||
# Optional Hyprland settings
|
|
||||||
settings.general."col.active_border" = "0xff97cbcd 0xff89b4fa";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user