diff --git a/lib/types/luks.nix b/lib/types/luks.nix index 48e2e11..d43cc73 100644 --- a/lib/types/luks.nix +++ b/lib/types/luks.nix @@ -6,10 +6,11 @@ let else if config.passwordFile != null then ''<(echo -n "$(cat ${config.passwordFile})")'' else if config.keyFile != null - then lib.warn - ("The option `keyFile` is deprecated." - + "Use passwordFile instead if you want to use interactive login or settings.keyFile if you want to use key file login") - config.keyFile + then + lib.warn + ("The option `keyFile` is deprecated." + + "Use passwordFile instead if you want to use interactive login or settings.keyFile if you want to use key file login") + config.keyFile else null; keyFileArgs = ''\ ${lib.optionalString (keyFile != null) "--key-file ${keyFile}"} \ diff --git a/lib/types/mdadm.nix b/lib/types/mdadm.nix index ca99f9c..bfef542 100644 --- a/lib/types/mdadm.nix +++ b/lib/types/mdadm.nix @@ -60,7 +60,7 @@ readOnly = true; default = [ - (if lib.versionAtLeast (lib.versions.majorMinor lib.version) "23.11" then { + (if lib.versionAtLeast (lib.versions.majorMinor lib.version) "23.11" then { boot.swraid.enable = true; } else { boot.initrd.services.swraid.enable = true;