initial zfs documentation

This commit is contained in:
Noah Masur 2023-08-05 14:44:24 -04:00
parent b7d1921c4d
commit d3b0f21313

15
docs/zfs.md Normal file
View File

@ -0,0 +1,15 @@
# ZFS
Swan runs its root on ext4. The ZFS drives are managed imperatively (this
[disko configuration](../disks/zfs.nix) is an unused work-in-progress).
The basic ZFS settings are managed [here](../modules/nixos/hardware/zfs.nix).
## Creating a New Dataset
```
sudo zfs create tank/mydataset
sudo zfs set compression=zstd tank/myzstddataset
sudo zfs set mountpoint=/data/mydataset tank/mydataset
```