global/persist: generalize persist locations
This commit is contained in:
parent
f3c0423a92
commit
e84489f306
12 changed files with 39 additions and 93 deletions
20
modules/global/persist.nix
Normal file
20
modules/global/persist.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ config, lib, ... }:
|
||||
with lib;
|
||||
{
|
||||
persist = {
|
||||
directories = [
|
||||
"/home"
|
||||
"/etc/nixos"
|
||||
"/etc/nixos-private"
|
||||
|
||||
"/var/log"
|
||||
"/var/lib/systemd/coredump"
|
||||
"/var/lib/tailscale"
|
||||
|
||||
"/root/.ssh"
|
||||
];
|
||||
files = [
|
||||
"/etc/machine-id"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue