diff --git a/Droidnix/generated/hyprland/hyprland.nix b/Droidnix/generated/hyprland/hyprland.nix index 6ff3b9d72..e99e0f602 100644 --- a/Droidnix/generated/hyprland/hyprland.nix +++ b/Droidnix/generated/hyprland/hyprland.nix @@ -7,10 +7,6 @@ ... }: -let - hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr"; - files = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr"); -in { # NixOS: Enable Hyprland programs.hyprland = { @@ -28,18 +24,17 @@ in enable = true; }; - # Create the config directory + # Simple symlink creation using xdg.configFile xdg.configFile = { - "hypr/.keep" = { - text = ""; + "hypr/hyprland.conf" = { + source = "${flakeRoot}/assets/hyprland/conf/hypr/hyprland.conf"; }; }; - # Use home.file to create each file as a symlink - home.file = lib.genAttrs files (name: { - target = "${flakeRoot}/assets/hyprland/conf/hypr/${name}"; - source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}"; - path = "/.config/hypr/${name}"; - }); + # Manual symlink creation script + system.activationScripts.hyprlandSymlinks = '' + mkdir -p ~/.config/hypr/ + ln -sf ${flakeRoot}/assets/hyprland/conf/hypr/*.conf ~/.config/hypr/ + ''; }; }