Nix/HM module: add ignore_empty_input option

This commit is contained in:
Maximilian Seidler 2024-03-26 21:34:20 +01:00 committed by Mihai Fufezan
parent ab2836360b
commit 0ba5b7ee67
1 changed files with 6 additions and 0 deletions

View File

@ -102,6 +102,11 @@ in {
type = bool;
default = false;
};
ignore_empty_input = mkOption {
description = "Skips validation when an empty password is provided";
type = bool;
default = false;
};
};
backgrounds = mkOption {
@ -512,6 +517,7 @@ in {
hide_cursor = ${boolToString cfg.general.hide_cursor}
no_fade_in = ${boolToString cfg.general.no_fade_in}
no_fade_out = ${boolToString cfg.general.no_fade_out}
ignore_empty_input = ${boolToString cfg.general.ignore_empty_input}
}
${builtins.concatStringsSep "\n" (map (background: ''