hydra: create tun device file at boot

This commit is contained in:
Ehmry - 2019-11-16 16:25:17 +01:00
parent 1fd053113a
commit 41c557695f
2 changed files with 10 additions and 0 deletions

View File

@ -8,6 +8,7 @@
./cache.nix
./../../lib/hq.nix
./../../lib/yggdrasil.nix
./../../lib/tun.nix
];
services.yggdrasil.config.Peers = [

9
lib/tun.nix Normal file
View File

@ -0,0 +1,9 @@
# 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
'';
}