porcorosso: fix networkmanager bindmount

This commit is contained in:
Luke Granger-Brown 2022-12-14 05:35:46 +00:00
parent 757900436a
commit 7d752e9871

View file

@ -296,16 +296,18 @@ in {
what = "/persist${dir}";
where = dir;
};
bindMountSvc = dir: svc: (bindMount' dir) // {
bindMountSvc = dir: svc: target: (bindMount' dir) // {
bindsTo = [svc];
partOf = [svc];
before = [svc];
wantedBy = [target];
};
bindMount = dir: (bindMount' dir) // {
wantedBy = ["multi-user.target"];
};
in [
(bindMountSvc "/var/lib/libvirt" "libvirtd.service")
(bindMountSvc "/etc/NetworkManager/system-connections" "NetworkManager.service")
(bindMountSvc "/var/lib/libvirt" "libvirtd.service" "multi-user.target")
(bindMountSvc "/etc/NetworkManager/system-connections" "NetworkManager.service" "network.target")
(bindMount "/root")
];