Deprecate manual targets.${target}.useWallpaper.enable options with
generated targets.${target}.image.enable options, following commit
953c3fb01e ("stylix/mk-target: generate options for configuring
safeguarded arguments").
Link: https://github.com/nix-community/stylix/pull/2084
Reviewed-by: 0xda157 <da157@voidq.com>
47 lines
903 B
Nix
47 lines
903 B
Nix
{ mkTarget, lib, ... }:
|
|
mkTarget {
|
|
imports = [
|
|
(lib.mkRenamedOptionModuleWith {
|
|
from = [
|
|
"stylix"
|
|
"targets"
|
|
"hyprlock"
|
|
"useWallpaper"
|
|
];
|
|
sinceRelease = 2605;
|
|
to = [
|
|
"stylix"
|
|
"targets"
|
|
"hyprlock"
|
|
"image"
|
|
"enable"
|
|
];
|
|
})
|
|
];
|
|
|
|
config = [
|
|
(
|
|
{ image }:
|
|
{
|
|
programs.hyprlock.settings.background.path = 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})";
|
|
};
|
|
};
|
|
}
|
|
)
|
|
];
|
|
}
|