From c87e1ba183fa394a3f8f1df6278ebf7f002c9600 Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Tue, 24 Sep 2024 13:30:55 -0400 Subject: [PATCH] hyprland: use hyprpaper if randomWallpaper not enabled --- homeManagerModules/desktop/hyprland/default.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/homeManagerModules/desktop/hyprland/default.nix b/homeManagerModules/desktop/hyprland/default.nix index dee99b44..6298956e 100644 --- a/homeManagerModules/desktop/hyprland/default.nix +++ b/homeManagerModules/desktop/hyprland/default.nix @@ -7,6 +7,18 @@ cfg = config.ar.home; in { config = lib.mkIf cfg.desktop.hyprland.enable { + services.hyprpaper = + lib.mkIf + (config.stylix.enable && !cfg.services.randomWallpaper.enable) + { + enable = true; + + settings = { + preload = ["${config.stylix.image}"]; + wallpaper = [",${config.stylix.image}"]; + }; + }; + wayland.windowManager.hyprland = { enable = true; settings = import ./settings.nix {inherit config lib pkgs;};