From 7e49450163d80a6655218cf6be112555a37efeb4 Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Sun, 15 Mar 2026 12:32:05 +0000 Subject: [PATCH] finding hyprland.conf error --- Droidnix/generated/hyprland/hyprland.nix | 69 ++++++++++++++++-------- 1 file changed, 48 insertions(+), 21 deletions(-) diff --git a/Droidnix/generated/hyprland/hyprland.nix b/Droidnix/generated/hyprland/hyprland.nix index fc455c419..97b8485f2 100644 --- a/Droidnix/generated/hyprland/hyprland.nix +++ b/Droidnix/generated/hyprland/hyprland.nix @@ -7,19 +7,10 @@ ... }: -let - hyprlandFiles = builtins.attrNames ( - builtins.filter (name: name != "hyprland.conf") ( - builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr" - ) - ); -in { - # Basic Hyprland configuration + # Enable Hyprland programs.hyprland = { enable = true; - # Disable the default config to avoid conflicts - extraConfig = ""; }; # Home Manager configuration @@ -29,25 +20,61 @@ in home.homeDirectory = config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}"; + # Enable Hyprland in Home Manager wayland.windowManager.hyprland = { enable = true; - # Use our custom config file instead of the default - settings = { - configFile = "${flakeRoot}/assets/hyprland/conf/hypr/hyprland.conf"; - }; }; - # Create config directory and all other files + # Create all the config files from your assets directory xdg.configFile = { + # First create the directory "hypr/.keep" = { text = ""; }; - }; - # Create symlinks for all other files except hyprland.conf - home.file = lib.genAttrs hyprlandFiles (name: { - target = ".config/hypr/${name}"; - source = "${flakeRoot}/assets/hyprland/conf/hypr/${name}"; - }); + # Then add all your config files + "hypr/hyprland.conf" = { + source = "${flakeRoot}/assets/hyprland/conf/hypr/hyprland.conf"; + }; + "hypr/animations.conf" = { + source = "${flakeRoot}/assets/hyprland/conf/hypr/animations.conf"; + }; + "hypr/behaviour.conf" = { + source = "${flakeRoot}/assets/hyprland/conf/hypr/behaviour.conf"; + }; + "hypr/bindings.conf" = { + source = "${flakeRoot}/assets/hyprland/conf/hypr/bindings.conf"; + }; + "hypr/exec-once.conf" = { + source = "${flakeRoot}/assets/hyprland/conf/hypr/exec-once.conf"; + }; + "hypr/hypridle.conf" = { + source = "${flakeRoot}/assets/hyprland/conf/hypr/hypridle.conf"; + }; + "hypr/hyprlock.conf" = { + source = "${flakeRoot}/assets/hyprland/conf/hypr/hyprlock.conf"; + }; + "hypr/layer-rules.conf" = { + source = "${flakeRoot}/assets/hyprland/conf/hypr/layer-rules.conf"; + }; + "hypr/layout.conf" = { + source = "${flakeRoot}/assets/hyprland/conf/hypr/layout.conf"; + }; + "hypr/monitor-rules.conf" = { + source = "${flakeRoot}/assets/hyprland/conf/hypr/monitor-rules.conf"; + }; + "hypr/theming.conf" = { + source = "${flakeRoot}/assets/hyprland/conf/hypr/theming.conf"; + }; + "hypr/variables.conf" = { + source = "${flakeRoot}/assets/hyprland/conf/hypr/variables.conf"; + }; + "hypr/window-rules.conf" = { + source = "${flakeRoot}/assets/hyprland/conf/hypr/window-rules.conf"; + }; + "hypr/workspace-rules.conf" = { + source = "${flakeRoot}/assets/hyprland/conf/hypr/workspace-rules.conf"; + }; + }; }; }