hyprland: structurally separate unconditional and conditional settings

Link: https://github.com/danth/stylix/pull/501
This commit is contained in:
NAHO 2024-08-10 15:48:36 +02:00
parent 16e4ca7fa7
commit 47f1504b45
No known key found for this signature in database
GPG key ID: 229CB671D09B95F5

View file

@ -41,9 +41,18 @@ in {
&& cfg.enable
&& config.wayland.windowManager.hyprland.enable
)
{
services.hyprpaper.enable = cfg.hyprpaper.enable;
stylix.targets.hyprpaper.enable = cfg.hyprpaper.enable;
wayland.windowManager.hyprland.settings = settings;
};
(
lib.mkMerge [
{
wayland.windowManager.hyprland.settings = settings;
}
(
lib.mkIf cfg.hyprpaper.enable {
services.hyprpaper.enable = true;
stylix.targets.hyprpaper.enable = true;
}
)
]
);
}