Something went wrong. Try again.
forked from nix-community/disko
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194{ disko.devices = { disk = { disk0 = { type = "disk"; device = "/dev/disk/by-id/ata-QEMU_HARDDISK_QM00001"; content = { type = "gpt"; partitions = { ESP = { start = "1M"; end = "128M"; type = "EF00"; content = { type = "filesystem"; format = "vfat"; mountpoint = "/boot"; mountOptions = [ "umask=0077" ]; }; }; }; }; }; disk1 = { type = "disk"; device = "/dev/disk/by-id/ata-QEMU_HARDDISK_QM00002"; content = { type = "gpt"; partitions = { luks = { uuid = "f0f0f0f0-f0f0-f0f0-f0f0-f0f0f0f0f0f0"; start = "1M"; size = "100%"; content = { type = "luks"; name = "crypted1"; settings.keyFile = "/tmp/secret.key"; additionalKeyFiles = [ "/tmp/additionalSecret.key" ]; extraFormatArgs = [ "--iter-time 1" # insecure but fast for tests ]; content = { type = "lvm_pv"; vg = "pool"; }; }; }; }; }; }; disk2 = { type = "disk"; device = "/dev/disk/by-id/ata-QEMU_HARDDISK_QM00003"; content = { type = "gpt"; partitions = { luks = { start = "1M"; size = "100%"; content = { type = "luks"; name = "crypted2"; settings = { keyFile = "/tmp/secret.key"; keyFileSize = 8; keyFileOffset = 2; }; extraFormatArgs = [ "--iter-time 1" # insecure but fast for tests ]; content = { type = "lvm_pv"; vg = "pool"; }; }; }; }; }; }; }; mdadm = { raid1 = { type = "mdadm"; level = 1; content = { type = "gpt"; partitions = { bla = { start = "1M"; size = "100%"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/ext4_mdadm_lvm"; }; }; }; }; }; }; lvm_vg = { pool = { type = "lvm_vg"; lvs = { root = { size = "10M"; lvm_type = "mirror"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/ext4_on_lvm"; mountOptions = [ "defaults" ]; postMountHook = '' touch /mnt/ext4_on_lvm/file-from-postMountHook ''; }; }; raid1 = { size = "30M"; lvm_type = "raid0"; content = { type = "mdraid"; name = "raid1"; }; }; raid2 = { size = "30M"; lvm_type = "raid0"; content = { type = "mdraid"; name = "raid1"; }; }; zfs1 = { size = "128M"; lvm_type = "raid0"; content = { type = "zfs"; pool = "zroot"; }; }; zfs2 = { size = "128M"; lvm_type = "raid0"; content = { type = "zfs"; pool = "zroot"; }; }; }; }; }; zpool = { zroot = { type = "zpool"; mode = "mirror"; rootFsOptions = { compression = "zstd"; "com.sun:auto-snapshot" = "false"; }; mountpoint = "/";
datasets = { zfs_fs = { type = "zfs_fs"; mountpoint = "/zfs_fs"; options."com.sun:auto-snapshot" = "true"; }; zfs_unmounted_fs = { type = "zfs_fs"; options.mountpoint = "none"; }; zfs_legacy_fs = { type = "zfs_fs"; options.mountpoint = "legacy"; mountpoint = "/zfs_legacy_fs"; }; zfs_testvolume = { type = "zfs_volume"; size = "10M"; content = { type = "filesystem"; format = "ext4"; mountpoint = "/ext4onzfs"; }; }; }; }; }; };}