See: https://www.hetzner.com/dedicated-rootserver/
/boot
: ext2
, mirrored
zpools
For a notebook
see https://openzfs.github.io/openzfs-docs/Getting Started/NixOS/Root on ZFS.html
compression=lz4
on
instead of lz4
or another specific algorithm will always pick the best available compression algorithm. [2]/var
lives:
xattr=sa
for Journaldacltype=posixacl
also for Journaldrelatime=on
for reduced stress on SSDsThe following is a list of dataset properties which are often useful, but do have drawbacks:
atime=off
disables if a file's access time is updated when the file is read. This can result in significant performance gains, but might confuse some software like mailers.
atime
, so setting atime=off
on the /nix
FS is fineNixOS requires (as of 2020-04-11) mountpoint=legacy
for all datasets. NixOS does not yet have tooling to require implicitly created ZFS mounts to settle before booting, and mountpoint=legacy
plus explicit mount points in hardware-configuration.nix will ensure all your datasets are mounted at the right time
https://jappie.me/the-nix-mutli-monolith-machine-nmmm.html