From b68ac1a33892a5bbe6302cb94eeaca764bae522c Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Sun, 15 Mar 2026 12:29:59 +0000 Subject: [PATCH] finding hyprland.conf error --- Droidnix/generated/hyprland/hyprland.nix | 25 +++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/Droidnix/generated/hyprland/hyprland.nix b/Droidnix/generated/hyprland/hyprland.nix index e99e0f602..d716753d9 100644 --- a/Droidnix/generated/hyprland/hyprland.nix +++ b/Droidnix/generated/hyprland/hyprland.nix @@ -7,15 +7,18 @@ ... }: +let + hyprlandFiles = builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr"); +in { - # NixOS: Enable Hyprland + # Basic Hyprland configuration programs.hyprland = { enable = true; }; - # Home Manager: Hyprland-specific configurations + # Home Manager configuration home-manager.users.${user.username} = { - home.stateVersion = config.home-manager.users.${user.username}.stateVersion or "25.11"; + home.stateVersion = "25.11"; home.username = user.username; home.homeDirectory = config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}"; @@ -24,17 +27,17 @@ enable = true; }; - # Simple symlink creation using xdg.configFile + # Create config directory xdg.configFile = { - "hypr/hyprland.conf" = { - source = "${flakeRoot}/assets/hyprland/conf/hypr/hyprland.conf"; + "hypr/.keep" = { + text = ""; }; }; - # Manual symlink creation script - system.activationScripts.hyprlandSymlinks = '' - mkdir -p ~/.config/hypr/ - ln -sf ${flakeRoot}/assets/hyprland/conf/hypr/*.conf ~/.config/hypr/ - ''; + # Create each file from assets + home.file = lib.genAttrs hyprlandFiles (name: { + target = ".config/hypr/${name}"; + source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}"; + }); }; }