hydra: create tun device file at boot
This commit is contained in:
parent
1fd053113a
commit
41c557695f
|
@ -8,6 +8,7 @@
|
|||
./cache.nix
|
||||
./../../lib/hq.nix
|
||||
./../../lib/yggdrasil.nix
|
||||
./../../lib/tun.nix
|
||||
];
|
||||
|
||||
services.yggdrasil.config.Peers = [
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue