From 73b3b5b43fdffbefb238c6429138b4678d19514f Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Fri, 13 Mar 2026 17:30:54 +0100 Subject: [PATCH] working on hernov --- Droidnix/generated/hyprland/hyprland.nix | 66 +++++++++++++++++------- 1 file changed, 46 insertions(+), 20 deletions(-) diff --git a/Droidnix/generated/hyprland/hyprland.nix b/Droidnix/generated/hyprland/hyprland.nix index 1f2d8e95b..f8ab7eca2 100644 --- a/Droidnix/generated/hyprland/hyprland.nix +++ b/Droidnix/generated/hyprland/hyprland.nix @@ -1,23 +1,49 @@ -source = ./variables.conf -# source = ./behaviour.conf -# source = ./layout.conf -# source = ./animations.conf -# source = ./layer-rules.conf -# source = ./window-rules.conf -# source = ./monitor-rules.conf -# source = ./workspace-rules.conf -source = ./bindings.conf +{ + config, + pkgs, + lib, + user, + flakeRoot, + ... +}: -# source = ./exec-once.conf +let + hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr"; + hyprlandConfs = + lib.genAttrs (builtins.attrNames (builtins.readDir "${flakeRoot}/assets/hyprland/conf/hypr")) + (name: { + text = builtins.readFile "${flakeRoot}/assets/hyprland/conf/hypr/${name}"; + }); +in +{ + # NixOS: Enable Hyprland (optional) + programs.hyprland = { + enable = true; + }; -general { - gaps_in = 2 - gaps_out = 4 - border_size = 2 - # Gradient syntax: color color angle (e.g. 45deg). :contentReference[oaicite:5]{index=5} - col.active_border = $blue $green 45deg - col.inactive_border = $inactive - layout = scrolling - resize_on_border = true - extend_border_grab_area = 20 # Makes it easier to "grab" the edge + # Home Manager: Hyprland-specific configurations + home-manager.users.${user.username} = rec { + home.stateVersion = "25.11"; + home.username = user.username; + home.homeDirectory = user.homeDirectory; + + wayland.windowManager.hyprland = { + enable = true; + }; + + # Ensure the Hyprland config directory exists and has the correct permissions + xdg.configFile = { + "hypr/.keep" = { + text = ""; + }; + } + // hyprlandConfs; + + # Ensure the home directory and .config directory have the correct permissions + home.file.".config".source = pkgs.writeDashScriptBin "mkdir-config" '' + mkdir -p $HOME/.config + chown -R ${user.username}:users $HOME/.config + chmod -R 755 $HOME/.config + ''; + }; }