ZFS: Difference between revisions

imported>Ryantm
imported>ElvishJerricco
m minor clarification about importing at boot
Line 21: Line 21:
</syntaxhighlight>
</syntaxhighlight>


or if you are using legacy mountpoints add a fileSystems entry:
or if you are using legacy mountpoints add a fileSystems entry and NixOS will automatically detect that the pool needs to be imported:


<syntaxhighlight lang="nix">
<syntaxhighlight lang="nix">
Line 27: Line 27:
fileSystems."/mount/point" = {
fileSystems."/mount/point" = {
   device = "zpool_name";
   device = "zpool_name";
   fsType = "zfs"; options = [ "zfsutil" "X-mount.mkdir" ];
   fsType = "zfs";
};
};
</syntaxhighlight>
</syntaxhighlight>