diff --git a/template/disk-configs/zfs.nix b/template/disk-configs/zfs.nix deleted file mode 100644 index 4827d69..0000000 --- a/template/disk-configs/zfs.nix +++ /dev/null @@ -1,105 +0,0 @@ -{ - networking.hostId = "8425e349"; # needed for ZFS - - disko.devices = { - disk = { - disk1 = { - type = "disk"; - device = "/dev/nvme0n1"; - content = { - type = "gpt"; - partitions = { - boot = { - size = "1M"; - type = "EF02"; # for grub MBR - }; - ESP = { - size = "500M"; - type = "EF00"; - content = { - type = "mdraid"; - name = "boot"; - }; - }; - zfs = { - size = "100%"; - content = { - type = "zfs"; - pool = "zroot"; - }; - }; - }; - }; - }; - disk2 = { - type = "disk"; - device = "/dev/nvme1n1"; - content = { - type = "gpt"; - partitions = { - boot = { - size = "1M"; - type = "EF02"; # for grub MBR - }; - ESP = { - size = "500M"; - type = "EF00"; - content = { - type = "mdraid"; - name = "boot"; - }; - }; - zfs = { - size = "100%"; - content = { - type = "zfs"; - pool = "zroot"; - }; - }; - }; - }; - }; - }; - zpool = { - zroot = { - type = "zpool"; - mode = "mirror"; - rootFsOptions = { - compression = "lz4"; - "com.sun:auto-snapshot" = "true"; - }; - rootFsOptions = { - mountpoint = "none"; - }; - - datasets = { - "root" = { - type = "zfs_fs"; - mountpoint = null; - }; - "root/nixos" = { - type = "zfs_fs"; - mountpoint = "/"; - }; - "root/home" = { - type = "zfs_fs"; - mountpoint = "/home"; - }; - }; - }; - }; - - mdadm = { - boot = { - type = "mdadm"; - level = 1; - metadata = "1.0"; - content = { - type = "filesystem"; - format = "vfat"; - mountpoint = "/boot"; - }; - }; - }; - }; -}