From d0c578a5efee8d11047928ead48f6dbd81f7e37b Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Sun, 15 Mar 2026 12:27:22 +0000 Subject: [PATCH] finding hyprland.conf error --- Droidnix/generated/hyprland/hyprland.nix | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) 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/ + ''; }; }