From 476c4d3310e9be45b9469fff804c48205a625a53 Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Sun, 15 Mar 2026 12:21:49 +0000 Subject: [PATCH] finding hyprland.conf error --- Droidnix/generated/hyprland/hyprland.nix | 43 +++++++++++++----------- 1 file changed, 23 insertions(+), 20 deletions(-) diff --git a/Droidnix/generated/hyprland/hyprland.nix b/Droidnix/generated/hyprland/hyprland.nix index 36c8bc884..7048797c6 100644 --- a/Droidnix/generated/hyprland/hyprland.nix +++ b/Droidnix/generated/hyprland/hyprland.nix @@ -10,8 +10,9 @@ let hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr"; files = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr"); - hyprlandConfs = lib.genAttrs files (name: { - text = builtins.readFile "${flakeRoot}/assets/hyprland/conf/hypr/${name}"; + hyprlandFileSymlinks = lib.genAttrs files (name: { + target = "${flakeRoot}/assets/hyprland/conf/hypr/${name}"; + isExecutable = name == "exec-once.conf"; # Mark exec-once.conf as executable if needed }); in { @@ -31,24 +32,26 @@ in enable = true; }; - # Create symlinks in ~/.config/hypr to all the files in assets/hyprland/conf/hypr and include debug file - xdg.configFile = - ( - { - "hypr/.keep" = { - text = ""; - }; - } - // hyprlandConfs - ) - // { - "hypr/hyprland-debug.txt" = { - text = '' - hyprlandConfigDir: ${hyprlandConfigDir} - flakeRoot: ${flakeRoot} - files: ${toString files} - ''; - }; + # Create symlinks for each file in assets/hyprland/conf/hypr + home.file = { + ".config/hypr/.keep" = { + text = ""; }; + } + // lib.genAttrs files (name: { + ".config/hypr/${name}" = { + source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}"; + executable = name == "exec-once.conf"; # Mark exec-once.conf as executable if needed + }; + }); + + # Debug statements + home.file.".config/hypr/hyprland-debug.txt" = { + text = '' + hyprlandConfigDir: ${hyprlandConfigDir} + flakeRoot: ${flakeRoot} + files: ${toString files} + ''; + }; }; }