Update hypridle to use nix paths

This commit is contained in:
Evie Litherland-Smith 2024-10-25 13:40:24 +01:00
parent 147ef5daf0
commit f6f42bd2c5

View file

@ -45,18 +45,19 @@
settings = settings =
let let
hyprctl = "${config.wayland.windowManager.hyprland.finalPackage}/bin/hyprctl"; hyprctl = "${config.wayland.windowManager.hyprland.finalPackage}/bin/hyprctl";
hyprlock = "${config.programs.hyprlock.package}/bin/hyprlock";
in in
{ {
general = { general = {
after_sleep_cmd = "${hyprctl} dispatch dpms on"; after_sleep_cmd = "${hyprctl} dispatch dpms on";
ignore_dbus_inhibit = false; ignore_dbus_inhibit = false;
lock_cmd = "hyprlock"; lock_cmd = "${hyprlock}";
}; };
listener = [ listener = [
{ {
timeout = 900; timeout = 900;
on-timeout = "hyprlock"; on-timeout = "${hyprlock}";
} }
{ {
timeout = 1200; timeout = 1200;