Skip to content

Commit

Permalink
nixos/storage: Add defaults for clear/initlabel
Browse files Browse the repository at this point in the history
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 <aszlig@redmoonstudios.org>
  • Loading branch information
aszlig committed Dec 27, 2016
1 parent 85e72e3 commit d6f428c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nixos/modules/tasks/storage.nix
Expand Up @@ -116,13 +116,15 @@ let
diskOptions.options = {
clear = mkOption {
type = types.bool;
default = false;
description = ''
Clear the partition table of this device.
'';
};

initlabel = mkOption {
type = types.bool;
default = false;
description = ''
Create a new disk label for this device (implies
<option>clear</option>).
Expand Down

0 comments on commit d6f428c

Please sign in to comment.