hyprland: use hyprpaper if randomWallpaper not enabled

This commit is contained in:
Aly Raffauf 2024-09-24 13:30:55 -04:00
parent 75f53fafee
commit c87e1ba183

View file

@ -7,6 +7,18 @@
cfg = config.ar.home; cfg = config.ar.home;
in { in {
config = lib.mkIf cfg.desktop.hyprland.enable { 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 = { wayland.windowManager.hyprland = {
enable = true; enable = true;
settings = import ./settings.nix {inherit config lib pkgs;}; settings = import ./settings.nix {inherit config lib pkgs;};