Regenerated

This commit is contained in:
2026-03-30 00:27:54 +00:00
parent 20fdcea80a
commit 4b17c5556f
3 changed files with 315 additions and 342 deletions
+297 -306
View File
File diff suppressed because it is too large Load Diff
+9 -18
View File
@@ -1829,32 +1829,23 @@ let
pkgs.hyprland-git or pkgs.hyprland-git or
inputs.hyprland.packages.${pkgs.system}.default; inputs.hyprland.packages.${pkgs.system}.default;
# Recursively gather all files as Home Manager entries # Lijst van bestanden in ./generated/.config/hypr
gatherFiles = dir: assetFiles = builtins.filter
let (f: builtins.pathInfo (assetPath + "/" + f).type == "regular")
entries = builtins.attrNames (builtins.readDir dir); (builtins.attrNames (builtins.readDir assetPath));
in lib.concatMap (e:
let
path = "${dir}/${e}";
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); # Home Manager entries voor elk bestand
hyprFilesAttrs = lib.listToAttrs (map (f: {
name = ".config/hypr/${f}";
value = { source = "${assetPath}/${f}"; };
}) assetFiles);
in in
{ {
# Install Hyprland systemwide
environment.systemPackages = [ hyprlandPkg ]; environment.systemPackages = [ hyprlandPkg ];
# Home Manager user configuration
home-manager.users = { home-manager.users = {
${username} = { ${username} = {
# Ensure all generated files end up in ~/.config/hypr
home.file = hyprFilesAttrs; home.file = hyprFilesAttrs;
}; };
}; };
@@ -9,32 +9,23 @@ let
pkgs.hyprland-git or pkgs.hyprland-git or
inputs.hyprland.packages.${pkgs.system}.default; inputs.hyprland.packages.${pkgs.system}.default;
# Recursively gather all files as Home Manager entries # Lijst van bestanden in ./generated/.config/hypr
gatherFiles = dir: assetFiles = builtins.filter
let (f: builtins.pathInfo (assetPath + "/" + f).type == "regular")
entries = builtins.attrNames (builtins.readDir dir); (builtins.attrNames (builtins.readDir assetPath));
in lib.concatMap (e:
let
path = "${dir}/${e}";
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); # Home Manager entries voor elk bestand
hyprFilesAttrs = lib.listToAttrs (map (f: {
name = ".config/hypr/${f}";
value = { source = "${assetPath}/${f}"; };
}) assetFiles);
in in
{ {
# Install Hyprland systemwide
environment.systemPackages = [ hyprlandPkg ]; environment.systemPackages = [ hyprlandPkg ];
# Home Manager user configuration
home-manager.users = { home-manager.users = {
${username} = { ${username} = {
# Ensure all generated files end up in ~/.config/hypr
home.file = hyprFilesAttrs; home.file = hyprFilesAttrs;
}; };
}; };