summaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/negative-size.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/example/negative-size.nix b/example/negative-size.nix
new file mode 100644
index 0000000..e41bae6
--- /dev/null
+++ b/example/negative-size.nix
@@ -0,0 +1,27 @@
+{ disks ? [ "/dev/vdb" "/dev/vdc" ], ... }: {
+ disk = {
+ disk0 = {
+ device = builtins.elemAt disks 0;
+ type = "disk";
+ content = {
+ type = "table";
+ format = "gpt";
+ partitions = [
+ {
+ name = "nix";
+ type = "partition";
+ part-type = "primary";
+ start = "0%";
+ end = "-10MiB";
+ bootable = true;
+ content = {
+ type = "filesystem";
+ format = "ext4";
+ mountpoint = "/";
+ };
+ }
+ ];
+ };
+ };
+ };
+}