mirror of
https://github.com/nix-community/disko.git
synced 2026-12-02 05:53:28 +01:00
types disk: add imageSize for makeDiskImage
This commit is contained in:
1 parent
a8834f94f3
commit
578ad4ef34
2 files changed
+9
-1
No files matched your search
@@ -16,6 +16,14 @@
|
||||
type = diskoLib.optionTypes.absolute-pathname; # TODO check if subpath of /dev ? - No! eg: /.swapfile
|
||||
description = "Device path";
|
||||
};
|
||||
imageSize = lib.mkOption {
|
||||
type = lib.types.strMatching "[0-9]+[KMGTP]?";
|
||||
description = ''
|
||||
size of the image if the makeDiskImage function from diksoLib is used.
|
||||
is used as an argument to truncate -s
|
||||
'';
|
||||
default = "15G";
|
||||
};
|
||||
content = diskoLib.deviceType { parent = config; device = config.device; };
|
||||
_meta = lib.mkOption {
|
||||
internal = true;
|
||||
|
||||
Reference in new issue
Block a user