From 3b7e055dcf35d32edf07e97871f3620b047a4a42 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Wed, 21 Feb 2024 12:28:50 -0600 Subject: [PATCH] nix: add general:grace --- nix/hm-module.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/hm-module.nix b/nix/hm-module.nix index 0db46e6..f4e4c39 100644 --- a/nix/hm-module.nix +++ b/nix/hm-module.nix @@ -27,6 +27,11 @@ in { type = bool; default = false; }; + grace = mkOption { + description = "Seconds to wait for user input before locking"; + type = int; + default = 0; + }; hide_cursor = mkOption { description = "Hides the cursor instead of making it visible"; type = bool; @@ -249,6 +254,7 @@ in { xdg.configFile."hypr/hyprlock.conf".text = '' general { disable_loading_bar = ${boolToString cfg.general.disable_loading_bar} + grace = ${toString cfg.general.grace} hide_cursor = ${boolToString cfg.general.hide_cursor} }