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,25 +1,35 @@
|
||||||
_: {
|
_:
|
||||||
environment.persistence."/persist/system" = {
|
let
|
||||||
hideMounts = true;
|
persistant-path = "/persist/system";
|
||||||
directories = [
|
in
|
||||||
"/etc/NetworkManager/system-connections"
|
{
|
||||||
"/etc/systemd/nspawn"
|
environment = {
|
||||||
"/root/.local/share/nix"
|
etc = {
|
||||||
"/var/cache/fwupd"
|
"machine-id" = {
|
||||||
"/var/lib/bluetooth"
|
enable = true;
|
||||||
"/var/lib/btrfs"
|
source = "${persistant-path}/machine-id";
|
||||||
"/var/lib/fwupd"
|
mode = "symlink";
|
||||||
"/var/lib/iwd"
|
};
|
||||||
"/var/lib/libvirt"
|
};
|
||||||
"/var/lib/machines"
|
persistence."${persistant-path}" = {
|
||||||
"/var/lib/NetworkManager"
|
hideMounts = true;
|
||||||
"/var/lib/nixos"
|
directories = [
|
||||||
"/var/lib/portables"
|
"/etc/NetworkManager/system-connections"
|
||||||
"/var/lib/systemd"
|
"/etc/systemd/nspawn"
|
||||||
"/var/log"
|
"/root/.local/share/nix"
|
||||||
];
|
"/var/cache/fwupd"
|
||||||
files = [
|
"/var/lib/bluetooth"
|
||||||
"/etc/machine-id"
|
"/var/lib/btrfs"
|
||||||
];
|
"/var/lib/fwupd"
|
||||||
|
"/var/lib/iwd"
|
||||||
|
"/var/lib/libvirt"
|
||||||
|
"/var/lib/machines"
|
||||||
|
"/var/lib/NetworkManager"
|
||||||
|
"/var/lib/nixos"
|
||||||
|
"/var/lib/portables"
|
||||||
|
"/var/lib/systemd"
|
||||||
|
"/var/log"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue