Add a way to define obsolete options that have no replacement

This commit is contained in:
Eelco Dolstra
2013-10-23 20:08:22 +02:00
parent b5d5afd99a
commit 8f4c5b05d5
4 changed files with 20 additions and 13 deletions
@@ -86,12 +86,6 @@ in
'';
};
# !!! How can we mark options as obsolete?
bootDevice = mkOption {
default = "";
description = "Obsolete.";
};
configurationName = mkOption {
default = "";
example = "Stable 2.6.21";
+4 -4
View File
@@ -44,12 +44,9 @@ in
{
options = {
boot.initrd.luks.enable = mkOption {
default = false;
description = "Obsolete.";
};
boot.initrd.luks.mitigateDMAAttacks = mkOption {
type = types.bool;
default = true;
description = ''
Unless enabled, encryption keys can be easily recovered by an attacker with physical
@@ -62,6 +59,7 @@ in
};
boot.initrd.luks.cryptoModules = mkOption {
type = types.listOf types.string;
default =
[ "aes" "aes_generic" "blowfish" "twofish"
"serpent" "cbc" "xts" "lrw" "sha1" "sha256" "sha512"
@@ -142,7 +140,9 @@ in
};
};
};
};
config = mkIf (luks.devices != []) {