Fix DHCP config for resolved

This commit is contained in:
Filippo Berto 2025-06-23 11:38:45 +02:00
parent 86c53fad43
commit 9d1f89e3e9
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED
2 changed files with 13 additions and 2 deletions

View file

@ -30,4 +30,15 @@
size = 1024 * 1;
}
];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
# networking.networkmanager.enable = lib.mkDefault true;
# networking.useDHCP = lib.mkDefault true;
networking.interfaces.ens3.useDHCP = true;
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
# networking.interfaces.ztmjfdwjkp.useDHCP = lib.mkDefault true;
}

View file

@ -51,8 +51,8 @@
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.eno1.useDHCP = lib.mkDefault true;
# networking.useDHCP = lib.mkDefault true;
networking.interfaces.eno1.useDHCP = lib.mkDefault true;
# networking.interfaces.tailscale0.useDHCP = lib.mkDefault true;
# networking.interfaces.ztmjfdwjkp.useDHCP = lib.mkDefault true;