hippocampus: perfect pitch: net tun device
This commit is contained in:
@@ -10,7 +10,7 @@
|
|||||||
};
|
};
|
||||||
script = ''
|
script = ''
|
||||||
exec ${config.systemd.package}/bin/systemd-nspawn --hostname perfectpitch \
|
exec ${config.systemd.package}/bin/systemd-nspawn --hostname perfectpitch \
|
||||||
--resolv-conf=off --system-call-filter="add_key keyctl bpf" --bind /dev/fuse \
|
--resolv-conf=off --system-call-filter="add_key keyctl bpf" --bind /dev/fuse --bind /dev/net/tun \
|
||||||
-nbD /var/lib/machines/perfectpitch --machine perfectpitch
|
-nbD /var/lib/machines/perfectpitch --machine perfectpitch
|
||||||
'';
|
'';
|
||||||
postStart = ''
|
postStart = ''
|
||||||
@@ -22,7 +22,10 @@
|
|||||||
Type = "notify";
|
Type = "notify";
|
||||||
Slice = "machine.slice";
|
Slice = "machine.slice";
|
||||||
Delegate = true;
|
Delegate = true;
|
||||||
DeviceAllow = "/dev/fuse rwm";
|
DeviceAllow = [
|
||||||
|
"/dev/fuse rwm"
|
||||||
|
"/dev/net/tun rwm"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
networking.nat = {
|
networking.nat = {
|
||||||
|
|||||||
Reference in New Issue
Block a user