Regenerated
This commit is contained in:
@@ -9,17 +9,15 @@ let
|
||||
pkgs.hyprland-git or
|
||||
inputs.hyprland.packages.${pkgs.system}.default;
|
||||
|
||||
# Recursively gather files as Home Manager entries
|
||||
# Recursively gather all files as Home Manager entries
|
||||
gatherFiles = dir:
|
||||
let
|
||||
entries = builtins.attrNames (builtins.readDir dir);
|
||||
in lib.concatMap (e:
|
||||
let
|
||||
path = "${dir}/${e}";
|
||||
# readDir geeft een attributenset, directories hebben type "directory"
|
||||
stat = builtins.readDir path;
|
||||
in if stat != {} then
|
||||
gatherFiles path
|
||||
in if stat != {} then gatherFiles path
|
||||
else [{
|
||||
name = ".config/hypr/${builtins.replaceStrings [ "${assetPath}/" ] [ "" ] path}";
|
||||
value = { source = path; };
|
||||
@@ -30,11 +28,13 @@ let
|
||||
|
||||
in
|
||||
{
|
||||
# Install Hyprland systemwide
|
||||
environment.systemPackages = [ hyprlandPkg ];
|
||||
|
||||
# Home Manager user configuration
|
||||
home-manager.users = {
|
||||
${username} = {
|
||||
# Place all files (including subdirectories) into ~/.config/hypr/
|
||||
# Ensure all generated files end up in ~/.config/hypr
|
||||
home.file = hyprFilesAttrs;
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user