gnome: use internal mkEnableTarget function (#397)

Follows: 679a806768
This commit is contained in:
NAHO 2024-05-28 13:24:18 +02:00 committed by GitHub
parent 659dd55a32
commit 5234b3d467
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5,12 +5,9 @@ let
in {
options.stylix.targets.gnome.enable =
lib.mkOption {
description = "Whether to style GNOME and GDM";
type = lib.types.bool;
default = config.stylix.autoEnable
&& config.services.xserver.desktopManager.gnome.enable;
};
config.lib.stylix.mkEnableTarget
"GNOME and GDM"
config.services.xserver.desktopManager.gnome.enable;
config = lib.mkIf config.stylix.targets.gnome.enable {
# As Stylix is controlling the wallpaper, there is no need for this