Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 485 Bytes

File metadata and controls

18 lines (13 loc) · 485 Bytes

NixOS direct connection with DHCP

You can include the dnsmasq.nix module into your NixOS config.

Activate DHCP on some port:

sudo nmcli device set eth0 managed no
sudo ip l set eth0 master internal
journalctl -f -u dnsmasq

and deactivate it when connecting to another network again:

sudo ip link set eth0 nomaster
sudo nmcli device set eth0 managed yes