networking: add dhcpClientId option to set DHCP Client ID

This commit is contained in:
Ihar Hrachyshka 2025-08-10 21:19:51 -04:00
parent 8b720b9662
commit 05a5979906
4 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,14 @@
{ config, lib, ... }:
{
networking.knownNetworkServices = [ "Wi-Fi" "Thunderbolt Ethernet" ];
networking.dns = [ "8.8.8.8" "8.8.4.4" ];
test = ''
echo checking dhcp client ID is not configured in /activate >&2
if grep -q "networksetup -setdhcp" ${config.out}/activate; then
echo "unexpected dhcp client ID configuration in /activate" >&2
exit 1
fi
'';
}