hyprland: structurally separate unconditional and conditional settings
Link: https://github.com/danth/stylix/pull/501
This commit is contained in:
parent
16e4ca7fa7
commit
47f1504b45
1 changed files with 14 additions and 5 deletions
|
|
@ -41,9 +41,18 @@ in {
|
|||
&& cfg.enable
|
||||
&& config.wayland.windowManager.hyprland.enable
|
||||
)
|
||||
{
|
||||
services.hyprpaper.enable = cfg.hyprpaper.enable;
|
||||
stylix.targets.hyprpaper.enable = cfg.hyprpaper.enable;
|
||||
wayland.windowManager.hyprland.settings = settings;
|
||||
};
|
||||
(
|
||||
lib.mkMerge [
|
||||
{
|
||||
wayland.windowManager.hyprland.settings = settings;
|
||||
}
|
||||
|
||||
(
|
||||
lib.mkIf cfg.hyprpaper.enable {
|
||||
services.hyprpaper.enable = true;
|
||||
stylix.targets.hyprpaper.enable = true;
|
||||
}
|
||||
)
|
||||
]
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue