# Stable enough, clearer, and faster than the default /dev/disk/by-id
boot.zfs.devNodes = "/dev/disk/by-partlabel";
# Not useful so far.
+ # See also https://github.com/NixOS/nixpkgs/issues/62644#issuecomment-1479523469
boot.zfs.forceImportAll = false;
# More resilient for remote hosts,
# though it may call zpool clear.
services.zfs.trim.enable = true;
services.zfs.trim.interval = "Sun *-*-01..07 00:15:00";
+ # Hide ZFS mountpoints from gio, hence nautilus or caja
+ systemd.services.zfs-mount.postStart = ''
+ /run/wrappers/bin/mount -t zfs | cut -f 1 -d ' ' |
+ xargs -n 1 -r -t /run/wrappers/bin/mount -o remount,x-gvfs-hide
+ '';
+
environment.systemPackages = [
pkgs.lzop # For remote syncoid
pkgs.mbuffer # For remote syncoid