hydra: create TUN device when starting yggdrasil
This commit is contained in:
parent
3c49f9b3bd
commit
7d92e8cae9
|
@ -10,7 +10,6 @@
|
|||
../../lib/emery.nix
|
||||
../../lib/buildfarmer.nix
|
||||
../../lib/yggdrasil.nix
|
||||
../../lib/tun.nix
|
||||
];
|
||||
|
||||
c3d2 = {
|
||||
|
@ -20,6 +19,11 @@
|
|||
};
|
||||
|
||||
networking.interfaces.eth0.preferTempAddress = false;
|
||||
systemd.services.yggdrasil.preStart = ''
|
||||
mkdir -p /dev/net
|
||||
mknod /dev/net/tun c 10 200 || true
|
||||
chmod 0666 /dev/net/tun
|
||||
'';
|
||||
services.yggdrasil = {
|
||||
configFile = "/var/lib/yggdrasil/keys";
|
||||
config.Peers = [
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
# Create the TUN device file for Proxmox containters.
|
||||
|
||||
{ ... }: {
|
||||
boot.initrd.postDeviceCommands = ''
|
||||
mkdir -p /dev/net
|
||||
mknod /dev/net/tun c 10 200
|
||||
chmod 0666 /dev/net/tun
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue