Skip to content

Commit

Permalink
fix(home-manager/hyprlock): import accents from file
Browse files Browse the repository at this point in the history
Ensure accents are defined before user vars
  • Loading branch information
Weathercold committed Sep 27, 2024
1 parent 54c3a50 commit cdb3d7d
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions modules/home-manager/hyprlock.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ in

config = lib.mkIf enable {
programs.hyprlock.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
'')
];
};
};
}

0 comments on commit cdb3d7d

Please sign in to comment.