impermanence: persist /etc/machine-id

This commit is contained in:
2022-06-21 00:02:57 -07:00
parent ceef35af96
commit 55f82260d5

View File

@@ -27,12 +27,6 @@ in
"/etc/NetworkManager/system-connections" "/etc/NetworkManager/system-connections"
"/etc/nixos" "/etc/nixos"
"/etc/ssh" "/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 # TODO: more granular persistence of /var/lib
"/var/lib" "/var/lib"
"/var/log" "/var/log"
@@ -40,6 +34,14 @@ in
# TODO: what even GOES in /srv? # TODO: what even GOES in /srv?
"/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"; }
];
}; };
}; };
} }