mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-21 22:13:56 -05:00
hyprland: use hyprpaper if randomWallpaper not enabled
This commit is contained in:
parent
75f53fafee
commit
c87e1ba183
|
@ -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;};
|
||||
|
|
Loading…
Reference in a new issue