skipper: symlink /etc/machine-id instead of bind-mount
This commit is contained in:
parent
f97c01a604
commit
9ca9fb8ae3
1 changed files with 33 additions and 23 deletions
|
@ -1,5 +1,17 @@
|
|||
_: {
|
||||
environment.persistence."/persist/system" = {
|
||||
_:
|
||||
let
|
||||
persistant-path = "/persist/system";
|
||||
in
|
||||
{
|
||||
environment = {
|
||||
etc = {
|
||||
"machine-id" = {
|
||||
enable = true;
|
||||
source = "${persistant-path}/machine-id";
|
||||
mode = "symlink";
|
||||
};
|
||||
};
|
||||
persistence."${persistant-path}" = {
|
||||
hideMounts = true;
|
||||
directories = [
|
||||
"/etc/NetworkManager/system-connections"
|
||||
|
@ -18,8 +30,6 @@ _: {
|
|||
"/var/lib/systemd"
|
||||
"/var/log"
|
||||
];
|
||||
files = [
|
||||
"/etc/machine-id"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue