diff --git a/home/desktop/hyprland/hypridle.nix b/home/desktop/hyprland/hypridle.nix index a6580ca..33c4563 100644 --- a/home/desktop/hyprland/hypridle.nix +++ b/home/desktop/hyprland/hypridle.nix @@ -1,5 +1,9 @@ +{ lib, nixosConfig, ... }: +let + cfg = nixosConfig.my.desktop; +in { - services.hypridle = { + services.hypridle = lib.mkIf (cfg.enable && cfg.hyprland.enable) { enable = true; systemdTarget = "hyprland-session.target"; settings = {