diff --git a/Droidnix/generated/hyprland/hyprland.nix b/Droidnix/generated/hyprland/hyprland.nix index b73a67207..dc903d116 100644 --- a/Droidnix/generated/hyprland/hyprland.nix +++ b/Droidnix/generated/hyprland/hyprland.nix @@ -25,16 +25,17 @@ in enable = true; }; - # First create the directory structure + # Create all files using home.file + home.file = lib.genAttrs hyprlandFiles (name: { + target = "/.config/hypr/${name}"; + source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}"; + }); + + # Create the directory structure xdg.configFile = { "hypr/.keep" = { text = ""; }; - } - // lib.genAttrs hyprlandFiles (name: { - "hypr/${name}" = { - source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}"; - }; - }); + }; }; }