11.stylix/modules/hyprlock/hm.nix
Flameopathic 2c4b5bec36
hyprlock: fix background color definition (#906)
Fixes: c8e4a0d218 ("treewide: optionalize stylix.image option (#717)")
2025-02-24 16:35:13 +01:00

29 lines
723 B
Nix

{ config, lib, ... }:
with config.lib.stylix;
let
cfg = config.stylix.targets.hyprlock;
in
{
options.stylix.targets.hyprlock = {
enable = mkEnableTarget "Hyprlock" true;
useWallpaper = mkEnableWallpaper "Hyprlock" true;
};
config = lib.mkIf (config.stylix.enable && cfg.enable) {
programs.hyprlock.settings = {
background = {
path = lib.mkIf cfg.useWallpaper config.stylix.image;
color = "rgb(${colors.base00})";
};
input-field = with colors; {
outer_color = "rgb(${base03})";
inner_color = "rgb(${base00})";
font_color = "rgb(${base05})";
fail_color = "rgb(${base08})";
check_color = "rgb(${base0A})";
};
};
};
}