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

View file

@ -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}
}