global/persist: generalize persist locations
This commit is contained in:
parent
f3c0423a92
commit
e84489f306
12 changed files with 39 additions and 93 deletions
|
@ -37,27 +37,10 @@
|
|||
|
||||
persist = {
|
||||
directories = [
|
||||
"/home"
|
||||
"/etc/nixos"
|
||||
"/etc/nixos-private"
|
||||
|
||||
# /var directories
|
||||
"/var/log"
|
||||
"/var/lib/systemd/coredump"
|
||||
"/var/lib/tailscale"
|
||||
"/var/lib/thelounge"
|
||||
|
||||
"/srv"
|
||||
];
|
||||
|
||||
files = [
|
||||
"/etc/machine-id"
|
||||
|
||||
"/root/.local/share/nix/trusted-settings.json"
|
||||
"/root/.ssh/known_hosts"
|
||||
"/root/.ssh/id_ed25519"
|
||||
"/root/.ssh/id_ed25519.pub"
|
||||
"/root/.ssh/immutable_files.txt"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue