Optionalize the stylix.image option when stylix.base16Scheme is set,
making the following Stylix configurations valid:
[
// Now it possible to set 'stylix.image = null', if
// stylix.base16Scheme is set.
{
base16Scheme = /* ... */;
}
// This configuration was already possible.
{
image = /* ... */;
}
// This configuration was already possible.
{
base16Scheme = /* ... */;
image = /* ... */;
}
]
Closes: https://github.com/danth/stylix/issues/200
Closes: https://github.com/danth/stylix/issues/442
Link: https://github.com/danth/stylix/pull/717
Co-authored-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Tested-by: NAHO <90870942+trueNAHO@users.noreply.github.com>
Reviewed-by: Daniel Thwaites <danth@danth.me>
14 lines
405 B
Nix
14 lines
405 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.stylix.targets.lightdm;
|
|
in
|
|
{
|
|
options.stylix.targets.lightdm = {
|
|
enable = config.lib.stylix.mkEnableTarget "LightDM" true;
|
|
useWallpaper = config.lib.stylix.mkEnableWallpaper "LightDM" true;
|
|
};
|
|
|
|
config.services.xserver.displayManager.lightdm.background = lib.mkIf (
|
|
config.stylix.enable && cfg.enable && cfg.useWallpaper
|
|
) config.stylix.image;
|
|
}
|