.. highlight:: sh System Configuration ====================== .. contents:: Table of Contents :local: #. Disable cache, stale cache will prevent system from booting:: mkdir -p /mnt/etc/zfs/ rm -f /mnt/etc/zfs/zpool.cache touch /mnt/etc/zfs/zpool.cache chmod a-w /mnt/etc/zfs/zpool.cache chattr +i /mnt/etc/zfs/zpool.cache #. Generate initial system configuration:: nixos-generate-config --root /mnt #. Import ZFS-specific configuration:: sed -i "s|./hardware-configuration.nix|./hardware-configuration.nix ./zfs.nix|g" /mnt/etc/nixos/configuration.nix #. Configure hostid:: tee -a /mnt/etc/nixos/zfs.nix <>/mnt/etc/nixos/zfs.nix done tee -a /mnt/etc/nixos/zfs.nix <