3 ms·
For instance, I have: fileSystems."/zfs/media" = { device = "tank/media"; fsType = "zfs"; }; in my hardware-configuration.nix.
by jfb 6y ago
For instance, I have:
fileSystems."/zfs/media" =
{ device = "tank/media";
fsType = "zfs";
};
in my hardware-configuration.nix. tank/media is defined as using a legacy mount-point or whatever the ZFS terminology is. Done.
ETA: I mean, I had to do all the gruntwork to get the pool built, yeah. But once it was defined, getting it mounted and all the kernel bits and bobs set was trivial like that.
- evil-olive 6y agoIn addition, if you just want to play around with it: boot.supportedFilesystems = [ "zfs" ]; Both installs the necessary kernel modules and adds zpool(1) / zfs(1) to $PATH.