Skip to content

Commit 3b7e055

Browse files
khanelimanfufexan
authored andcommitted
nix: add general:grace
1 parent 9dea7c2 commit 3b7e055

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nix/hm-module.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ in {
2727
type = bool;
2828
default = false;
2929
};
30+
grace = mkOption {
31+
description = "Seconds to wait for user input before locking";
32+
type = int;
33+
default = 0;
34+
};
3035
hide_cursor = mkOption {
3136
description = "Hides the cursor instead of making it visible";
3237
type = bool;
@@ -249,6 +254,7 @@ in {
249254
xdg.configFile."hypr/hyprlock.conf".text = ''
250255
general {
251256
disable_loading_bar = ${boolToString cfg.general.disable_loading_bar}
257+
grace = ${toString cfg.general.grace}
252258
hide_cursor = ${boolToString cfg.general.hide_cursor}
253259
}
254260

0 commit comments

Comments
 (0)