mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 04:13:55 -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;
|
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;};
|
||||||
|
|
Loading…
Reference in a new issue