{...}: { environment.persistence = { "/srv" = { hideMounts = true; directories = [ "/etc/nixos" "/var/log" "/var/lib/postgresql" "/var/lib/acme" { directory = "/var/lib/nix-sync"; user = "nix-sync"; group = "nix-sync"; mode = "0700"; } ]; files = [ "/etc/machine-id" ]; }; }; }