{ config, lib, ... }: let cfg = config.wayland.windowManager.hyprland; in { config.services.hypridle = lib.mkIf cfg.enable { enable = false; settings = { general = { lock_cmd = "loginctl lock-session"; before_sleep_cmd = "loginctl lock-session"; after_sleep_cmd = "hyprctl dispatch dpms on"; inhibit_sleep = 3; }; }; }; }