howl/porcorosso: switch NetworkManager/system-connections from symlink to bind mount

This commit is contained in:
Luke Granger-Brown 2022-09-18 17:53:02 +01:00
parent a840c23c56
commit 18d7f36feb
2 changed files with 2 additions and 8 deletions

View file

@ -144,11 +144,6 @@ in {
bits = 4096;
}
];
environment.etc = {
"NetworkManager/system-connections" = {
source = "/persist/etc/NetworkManager/system-connections/";
};
};
systemd.tmpfiles.rules = [
"d /var/lib/libvirt 0755 root - - -"
];
@ -168,6 +163,7 @@ in {
};
in [
(bindMountSvc "/var/lib/libvirt" "libvirtd.service")
(bindMountSvc "/etc/NetworkManager/system-connections" "NetworkManager.service")
(bindMount "/root")
];

View file

@ -283,9 +283,6 @@ in {
}
];
environment.etc = {
"NetworkManager/system-connections" = {
source = "/persist/etc/NetworkManager/system-connections/";
};
"nixos" = { source = "/persist/etc/nixos/"; };
};
systemd.tmpfiles.rules = [
@ -308,6 +305,7 @@ in {
};
in [
(bindMountSvc "/var/lib/libvirt" "libvirtd.service")
(bindMountSvc "/etc/NetworkManager/system-connections" "NetworkManager.service")
(bindMount "/root")
];