From 53dae84520de5b989e03152e22e54340366d2aab Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Sun, 8 Mar 2026 00:16:07 +0100 Subject: [PATCH] Working on bindings --- Droidnix/generated/hyprland/hyprland.nix | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/Droidnix/generated/hyprland/hyprland.nix b/Droidnix/generated/hyprland/hyprland.nix index 3f729fd4b..7db1ef607 100644 --- a/Droidnix/generated/hyprland/hyprland.nix +++ b/Droidnix/generated/hyprland/hyprland.nix @@ -4,6 +4,7 @@ lib, user, flakeRoot, + userConfig, ... }: let @@ -11,29 +12,31 @@ let # Dynamically read all files in assets/hyprland/conf/ hyprlandConfs = lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf")) - ( - name: "hypr/${name}" # Prepend "hypr/" to deploy files to ~/.config/hypr/ - ); + (name: { + text = builtins.readFile "${flakeRoot}/assets/hyprland/conf/${name}"; + }); in { - # NixOS: Enable Hyprland (optional, if you want to set it as the default session) + # NixOS: Enable Hyprland (optional) programs.hyprland = { enable = true; }; - # Hyprland-specific Home Manager configurations + # Home Manager: Hyprland-specific configurations home-manager.users.${user.username} = { home.stateVersion = userConfig.stateVersion; home.username = userConfig.username; home.homeDirectory = userConfig.homeDirectory; - xdg.configFile."hypr/hyprland.conf".text = hyprlandConf; + wayland.windowManager.hyprland = { enable = true; }; - # Dynamically deploy all Hyprland config files - xdg.configFile = lib.genAttrs hyprlandConfs (path: { - text = builtins.readFile "${flakeRoot}/assets/hyprland/conf/${lib.stringReplace "hypr/" "" path}"; - }); + # Merge dynamic Hyprland configs with existing xdg.configFile + xdg.configFile = { + # Your existing manual configs (if any) + # "hypr/hyprland.conf".text = "..."; + } + // hyprlandConfs; # Merge dynamic configs here }; }