0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00

Add a way to define obsolete options that have no replacement

This commit is contained in:
Eelco Dolstra 2013-10-23 18:22:26 +02:00
parent b5d5afd99a
commit 8f4c5b05d5
4 changed files with 20 additions and 13 deletions

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 != []) {