add svalbard system as nas; xp11 becomes server

This commit is contained in:
Haak Saxberg 2022-08-09 17:11:56 -07:00
parent 9438cc1986
commit b5948db3da
6 changed files with 170 additions and 1 deletions

View file

@ -0,0 +1,15 @@
To set up ZFS on the spinning discs, followed steps derived from these sources (but without encryption):
* https://ipetkov.dev/blog/installing-nixos-and-zfs-on-my-desktop/
* https://cheat.readthedocs.io/en/latest/nixos/zfs_install.html
```
# DISK=<disk from /dev/disk/by-id>
# POOL=<a name for the pool>
# zpool create "${POOL}" $DISK
# zfs create -o compression=on -o mountpoint=legacy "${POOL}/main"
```
then added the ZFS filesystem to `hardware-configuration.nix` (use the zfs
created label as the device) and rebooted.
Don't forget to `chown` the mounted system so that non-root can read/write there.