hyprland: only enable hyprpaper when hyprland is installed (#544)

See https://github.com/danth/stylix/issues/542#issuecomment-2324323870

Closes #542
This commit is contained in:
Daniel Thwaites 2024-09-02 11:39:50 +01:00 committed by GitHub
parent 3a4101c4f4
commit c95de36252
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,7 @@ in {
config =
lib.mkIf
(config.stylix.enable && config.stylix.targets.hyprland.enable)
(config.stylix.enable && config.stylix.targets.hyprland.enable && config.wayland.windowManager.hyprland.enable)
{
services.hyprpaper.enable = true;
stylix.targets.hyprpaper.enable = true;