From 0328585a863e7cb4981f97dec2e522de41039558 Mon Sep 17 00:00:00 2001 From: "info@data-pro.nu" Date: Sun, 15 Mar 2026 11:58:53 +0000 Subject: [PATCH] finding hyprland.conf error --- Droidnix/generated/hyprland/hyprland.nix | 30 +++++++++++------------- 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/Droidnix/generated/hyprland/hyprland.nix b/Droidnix/generated/hyprland/hyprland.nix index 702935092..d0630aea2 100644 --- a/Droidnix/generated/hyprland/hyprland.nix +++ b/Droidnix/generated/hyprland/hyprland.nix @@ -1,11 +1,4 @@ -{ - config, - pkgs, - lib, - user, - flakeRoot, - ... -}: +{ config, pkgs, lib, user, flakeRoot, ... }: let hyprlandConfigDir = "${config.home-manager.users.${user.username}.xdg.configHome}/hypr"; @@ -15,18 +8,16 @@ let }); in { - # NixOS: Enable Hyprland (optional) + # NixOS: Enable Hyprland programs.hyprland = { enable = true; }; # Home Manager: Hyprland-specific configurations home-manager.users.${user.username} = { - # Use config.home-manager.users.${user.username} instead of userConfig - home.stateVersion = config.home-manager.users.${user.username}.stateVersion or "25.11"; # Default fallback - home.username = user.username; # Use the 'user' argument - home.homeDirectory = - config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}"; + home.stateVersion = config.home-manager.users.${user.username}.stateVersion or "25.11"; + home.username = user.username; + home.homeDirectory = config.home-manager.users.${user.username}.homeDirectory or "/home/${user.username}"; wayland.windowManager.hyprland = { enable = true; @@ -37,7 +28,14 @@ in "hypr/.keep" = { text = ""; }; - } - // hyprlandConfs; + } // hyprlandConfs; + + # Ensure Home Manager is enabled and configured + systemd.user.services.home-manager-${user.username} = { + description = "Home Manager for ${user.username}"; + wantedBy = [ "default.target" ]; + serviceConfig.Type = "oneshot"; + serviceConfig.ExecStart = "${pkgs.home-manager}/bin/home-manager generate"; + }; }; }