summaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2022-08-25 15:08:26 +0200
committerlassulus <lassulus@lassul.us>2022-08-25 23:31:05 +0200
commit83fb8f661eb574f32fad1d51bbebd0c36595db01 (patch)
tree93761cafa54cc79af862e13baee151ad682d957d /example
parentdd99e29edc994056d5f700e24a75406115e98dff (diff)
add zfs support/test/example
Diffstat (limited to 'example')
-rw-r--r--example/zfs.nix41
1 files changed, 41 insertions, 0 deletions
diff --git a/example/zfs.nix b/example/zfs.nix
new file mode 100644
index 0000000..e344289
--- /dev/null
+++ b/example/zfs.nix
@@ -0,0 +1,41 @@
+{
+ type = "devices";
+ content = {
+ vdb = {
+ type = "zfs";
+ pool = "zroot";
+ };
+ vdc = {
+ type = "zfs";
+ pool = "zroot";
+ };
+ zroot = {
+ type = "zpool";
+ mode = "mirror";
+ datasets = [
+ {
+ type = "zfs_filesystem";
+ name = "zfs_fs";
+ mountpoint = "/zfs_fs";
+ }
+ {
+ type = "zfs_filesystem";
+ name = "zfs_legacy_fs";
+ options.mountpoint = "legacy";
+ mountpoint = "/zfs_legacy_fs";
+ }
+ {
+ type = "zfs_volume";
+ name = "zfs_testvolume";
+ size = "10M";
+ content = {
+ type = "filesystem";
+ format = "ext4";
+ mountpoint = "/ext4onzfs";
+ };
+ }
+ ];
+ };
+ };
+}
+