From 0ba5b7ee67ddc5e62b7e460ebe6a90b17f89b33f Mon Sep 17 00:00:00 2001 From: Maximilian Seidler Date: Tue, 26 Mar 2024 21:34:20 +0100 Subject: [PATCH] Nix/HM module: add ignore_empty_input option --- nix/hm-module.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/hm-module.nix b/nix/hm-module.nix index 8a820a2..029c281 100644 --- a/nix/hm-module.nix +++ b/nix/hm-module.nix @@ -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: ''