11.stylix/modules/hyprlock/hm.nix
NAHO 61c9f4dd14
treewide: remove redundant stylix.image escaping and string coercion
Remove redundant shell escaping and string coercion as stylix.image is
guaranteed to be a stringified store path with a valid string context
and no special characters.

Fixes: 3499e3ec70 ("treewide: properly quote stylix.image when used as a shell argument")
2026-01-14 15:54:38 +01:00

35 lines
728 B
Nix

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