nix: add general:grace

This commit is contained in:
Austin Horstman 2024-02-21 12:28:50 -06:00 committed by Mihai Fufezan
parent 9dea7c2f55
commit 3b7e055dcf
1 changed files with 6 additions and 0 deletions

View File

@ -27,6 +27,11 @@ in {
type = bool; type = bool;
default = false; default = false;
}; };
grace = mkOption {
description = "Seconds to wait for user input before locking";
type = int;
default = 0;
};
hide_cursor = mkOption { hide_cursor = mkOption {
description = "Hides the cursor instead of making it visible"; description = "Hides the cursor instead of making it visible";
type = bool; type = bool;
@ -249,6 +254,7 @@ in {
xdg.configFile."hypr/hyprlock.conf".text = '' xdg.configFile."hypr/hyprlock.conf".text = ''
general { general {
disable_loading_bar = ${boolToString cfg.general.disable_loading_bar} disable_loading_bar = ${boolToString cfg.general.disable_loading_bar}
grace = ${toString cfg.general.grace}
hide_cursor = ${boolToString cfg.general.hide_cursor} hide_cursor = ${boolToString cfg.general.hide_cursor}
} }