Regenerated

This commit is contained in:
2026-03-30 00:13:03 +00:00
parent ce0828077e
commit 363d2635a8
3 changed files with 327 additions and 303 deletions
+301 -293
View File
File diff suppressed because it is too large Load Diff
+13 -5
View File
@@ -1824,6 +1824,12 @@ let
username = config.defaultUser or "henrov";
assetPath = "${flakeRoot}/generated/.config/hypr";
# Determine Hyprland package (systemwide installation is enough)
hyprlandPkg =
pkgs.hyprland or
pkgs.hyprland-git or
inputs.hyprland.packages.${pkgs.system}.default;
# Recursively read directory and generate Home Manager file entries
rec readDirRecursive = dir:
let
@@ -1836,26 +1842,28 @@ let
then readDirRecursive path
else [{
# Destination path relative to home directory
name = builtins.replaceStrings [ "${flakeRoot}/generated/" ] [ "" ] path;
name = ".config/hypr/${builtins.substring (builtins.stringLength assetPath + 1) (builtins.stringLength path - (builtins.stringLength assetPath + 1)) path}";
value = { source = path; };
}]
) entries;
in files;
hyprFiles = readDirRecursive assetPath;
# Convert list to attribute set (no mkMerge needed)
hyprFilesAttrs = lib.listToAttrs (readDirRecursive assetPath);
in
{
# Systemwide installation
environment.systemPackages = [ hyprlandPkg ];
# Home Manager users declaration
home-manager.users = {
${username} = {
# Merge all files (including subdirectories) into ~/.config/hypr/
home.file = lib.mkMerge hyprFiles;
# Directly define all config files in ~/.config/hypr/
home.file = hyprFilesAttrs;
# Optional: Hyprland settings
# Optional Hyprland settings
settings.general."col.active_border" = "0xff97cbcd 0xff89b4fa";
};
};
@@ -4,6 +4,12 @@ let
username = config.defaultUser or "henrov";
assetPath = "${flakeRoot}/generated/.config/hypr";
# Determine Hyprland package (systemwide installation is enough)
hyprlandPkg =
pkgs.hyprland or
pkgs.hyprland-git or
inputs.hyprland.packages.${pkgs.system}.default;
# Recursively read directory and generate Home Manager file entries
rec readDirRecursive = dir:
let
@@ -16,26 +22,28 @@ let
then readDirRecursive path
else [{
# Destination path relative to home directory
name = builtins.replaceStrings [ "${flakeRoot}/generated/" ] [ "" ] path;
name = ".config/hypr/${builtins.substring (builtins.stringLength assetPath + 1) (builtins.stringLength path - (builtins.stringLength assetPath + 1)) path}";
value = { source = path; };
}]
) entries;
in files;
hyprFiles = readDirRecursive assetPath;
# Convert list to attribute set (no mkMerge needed)
hyprFilesAttrs = lib.listToAttrs (readDirRecursive assetPath);
in
{
# Systemwide installation
environment.systemPackages = [ hyprlandPkg ];
# Home Manager users declaration
home-manager.users = {
${username} = {
# Merge all files (including subdirectories) into ~/.config/hypr/
home.file = lib.mkMerge hyprFiles;
# Directly define all config files in ~/.config/hypr/
home.file = hyprFilesAttrs;
# Optional: Hyprland settings
# Optional Hyprland settings
settings.general."col.active_border" = "0xff97cbcd 0xff89b4fa";
};
};