{ ... }: { environment.persistence."/persist" = { hideMounts = true; directories = [ "/etc/nixos" "/etc/secureboot" "/var/log" "/var/lib/systemd/coredump" "/var/lib/nixos" ]; files = [ "/etc/machine-id" "/etc/ssh/ssh_host_ed25519_key" "/etc/ssh/ssh_host_ed25519_key.pub" "/etc/ssh/ssh_host_rsa_key" "/etc/ssh/ssh_host_rsa_key.pub" ]; }; }