impermanence: persist /etc/machine-id
This commit is contained in:
@@ -27,12 +27,6 @@ in
|
||||
"/etc/NetworkManager/system-connections"
|
||||
"/etc/nixos"
|
||||
"/etc/ssh"
|
||||
# TODO: these individual files don't bind-mount. Xe shows the right way to handle files, i believe.
|
||||
# "/etc/machine-id"
|
||||
# # XXX these only need persistence because i have mutableUsers = true, i think
|
||||
# "/etc/group"
|
||||
# "/etc/passwd"
|
||||
# "/etc/shadow"
|
||||
# TODO: more granular persistence of /var/lib
|
||||
"/var/lib"
|
||||
"/var/log"
|
||||
@@ -40,6 +34,14 @@ in
|
||||
# TODO: what even GOES in /srv?
|
||||
"/srv"
|
||||
];
|
||||
files = [
|
||||
"/etc/machine-id"
|
||||
# # XXX these only need persistence because i have mutableUsers = true, i think
|
||||
# "/etc/group"
|
||||
# "/etc/passwd"
|
||||
# "/etc/shadow"
|
||||
# { file = "/home/test2"; persistentStoragePath = "/nix/persist"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user