From d6f428c0d5862a05b385d7b3759efd71b4fe08e1 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 27 Dec 2016 17:49:37 +0100 Subject: [PATCH] nixos/storage: Add defaults for clear/initlabel I haven't yet stumbled on this because I have always set these options within test configurations. So this now allows to set empty disk options, which is fine (after all we just need to reference them using the storage option in fileSystems and swapDevices). Signed-off-by: aszlig --- nixos/modules/tasks/storage.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/tasks/storage.nix b/nixos/modules/tasks/storage.nix index 3780ba8a625e8c..ddba145926af1a 100644 --- a/nixos/modules/tasks/storage.nix +++ b/nixos/modules/tasks/storage.nix @@ -116,6 +116,7 @@ let diskOptions.options = { clear = mkOption { type = types.bool; + default = false; description = '' Clear the partition table of this device. ''; @@ -123,6 +124,7 @@ let initlabel = mkOption { type = types.bool; + default = false; description = '' Create a new disk label for this device (implies ).