mirror of
https://github.com/nix-community/disko.git
synced 2026-11-30 21:13:28 +01:00
Add disk.destroy option
This commit is contained in:
1 parent
c7e0b00007
commit
aa5d53aee8
2 files changed
+22
-3
No files matched your search
@@ -22,6 +22,11 @@
|
||||
type = diskoLib.optionTypes.absolute-pathname; # TODO check if subpath of /dev ? - No! eg: /.swapfile
|
||||
description = "Device path";
|
||||
};
|
||||
destroy = lib.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = true;
|
||||
description = "If false, disko will not wipe or destroy this disk's contents during the destroy stage";
|
||||
};
|
||||
imageName = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
default = config.name;
|
||||
|
||||
Reference in new issue
Block a user