From 88444f6cd71c97a97df8dcf31c3809438ad1104a Mon Sep 17 00:00:00 2001 From: Oleg Pykhalov Date: Thu, 7 Nov 2024 11:08:24 +0300 Subject: [PATCH] pc0: Allow dhcp-client to receive static routes. --- dotfiles/guixsd/pc0.scm | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/dotfiles/guixsd/pc0.scm b/dotfiles/guixsd/pc0.scm index a5b531849..a4721a6c6 100644 --- a/dotfiles/guixsd/pc0.scm +++ b/dotfiles/guixsd/pc0.scm @@ -198,7 +198,18 @@ (services (append (list (service avahi-service-type) (service dhcp-client-service-type (dhcp-client-configuration - (interfaces '("eth0")))) + (interfaces '("eth0")) + (config-file + (text-file "dhclient.conf" "\ +option rfc3442-classless-static-routes code 121 = array of unsigned integer 8; + +send host-name = gethostname(); +request subnet-mask, broadcast-address, time-offset, routers, + domain-name, domain-name-servers, domain-search, host-name, + dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers, + netbios-name-servers, netbios-scope, interface-mtu, + rfc3442-classless-static-routes, ntp-servers; +")))) (service openssh-service-type (openssh-configuration (openssh openssh-sans-x)