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>
27 lines
441 B
Nix
27 lines
441 B
Nix
{ mkTarget, lib, ... }:
|
|
mkTarget {
|
|
imports = [
|
|
(lib.mkRenamedOptionModuleWith {
|
|
from = [
|
|
"stylix"
|
|
"targets"
|
|
"lightdm"
|
|
"useWallpaper"
|
|
];
|
|
sinceRelease = 2605;
|
|
to = [
|
|
"stylix"
|
|
"targets"
|
|
"lightdm"
|
|
"image"
|
|
"enable"
|
|
];
|
|
})
|
|
];
|
|
|
|
config =
|
|
{ image }:
|
|
{
|
|
services.xserver.displayManager.lightdm.background = image;
|
|
};
|
|
}
|