nixos-config/home-manager/stvnliu/hypr/hypridle.nix
Zhongheng Liu 7d88765f5d
feat(home-manager): service defs and fmt
fmt: reformatted using nixpkgs-fmt prettifier
mpd: created configuration
hypr: add window rules
commons: add usingMusicPlayerDaemon variable
2025-01-08 14:12:29 +02:00

22 lines
390 B
Nix

{ pkgs, ... }:
let
timeoutSeconds = 600;
in
{
services.hypridle = {
enable = true;
settings = {
general = {
after_sleep_cmd = "hyprctl dispatch dpms on";
ignore_dbus_inhibit = false;
lock_cmd = "hyprlock";
};
listener = [
{
timeout = timeoutSeconds;
on-timeout = "hyprlock";
}
];
};
};
}