From 3d45b7f5381e49410c1c54189d0626e832800e38 Mon Sep 17 00:00:00 2001 From: Weathercold Date: Fri, 27 Sep 2024 18:13:43 -0400 Subject: [PATCH] fix(home-manager): import accents from file Ensure accents are defined before user vars Partially reverts 512306ae --- modules/home-manager/hyprland.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/home-manager/hyprland.nix b/modules/home-manager/hyprland.nix index 6d94fce5..fb3351f7 100644 --- a/modules/home-manager/hyprland.nix +++ b/modules/home-manager/hyprland.nix @@ -18,9 +18,14 @@ in }; wayland.windowManager.hyprland.settings = { - source = [ "${sources.hyprland}/themes/${cfg.flavor}.conf" ]; - "$accent" = "\$${cfg.accent}"; - "$accentAlpha" = "\$${cfg.accent}Alpha"; + source = [ + "${sources.hyprland}/themes/${cfg.flavor}.conf" + # Define accents in file to ensure they appear before user vars + (builtins.toFile "hyprland-${cfg.accent}-accent.conf" '' + $accent = ''$${cfg.accent} + $accentAlpha = ''$${cfg.accent}Alpha + '') + ]; }; }; }