nix-config/lib/tun.nix

10 lines
194 B
Nix

# 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
'';
}