ZFS: Difference between revisions

(fixup some bits in the encrypted zfs pool tutorial)
(Use systemd-boot as grub's zfs support cannot be used with zfs encryption anyway.)
Line 140: Line 140:
{
{
   # Boot loader config for configuration.nix:
   # Boot loader config for configuration.nix:
   boot.loader.grub = {
   boot.loader.systemd-boot.enable = true;
    enable = true;
    zfsSupport = true;
    efiSupport = true;
    efiInstallAsRemovable = true;
    mirroredBoots = [
      { devices = [ "nodev"]; path = "/boot"; }
    ];
  };


   # for local disks that are not shared over the network, we don't need this to be random
   # for local disks that are not shared over the network, we don't need this to be random
Line 156: Line 148:
     device = "zpool/root";
     device = "zpool/root";
     fsType = "zfs";
     fsType = "zfs";
    # the zfsutil option is needed when mounting zfs datasets without "legacy" mountpoints
     options = [ "zfsutil" ];
     options = [ "zfsutil" ];
   };
   };