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")
35 lines
728 B
Nix
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})";
|
|
};
|
|
};
|
|
}
|
|
)
|
|
];
|
|
}
|