{ lib, ... }: { boot.initrd.systemd.enable = true; boot.initrd.postDeviceCommands = lib.mkAfter "zfs mount -a"; fileSystems."/" = { device = "none"; fsType = "tmpfs"; options = [ "defaults" "size=4G" "mode=755" ]; }; environment.persistence."/persist" = { directories = [ "/etc/nixos" "/var/log" ]; files = [ "/etc/machine-id" "/etc/ssh/ssh_host_rsa_key" "/etc/ssh/ssh_host_rsa_key.pub" "/etc/ssh/ssh_host_ed25519_key" "/etc/ssh/ssh_host_ed25519_key.pub" ]; }; }