From aa4a1806c090c9e7e57827dd3a12b8eb936febc6 Mon Sep 17 00:00:00 2001 From: Dhruvin Gandhi Date: Wed, 29 Dec 2021 11:45:10 +0530 Subject: [PATCH] images/guix: use %qemu-static-networking static-networking-service is deprecated in guix. It is recommended to use static-networking-service-type with a list of static-networking records, one for each interface. base services has one defined for localhost already. We extend that with %qemu-static-networking. Fixes: https://todo.sr.ht/~dhruvin/builds.sr.ht-guix/8 --- images/guix/system.scm | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/images/guix/system.scm b/images/guix/system.scm index 2bc903c..eaebc2a 100644 --- a/images/guix/system.scm +++ b/images/guix/system.scm @@ -28,16 +28,15 @@ (sudoers-file (plain-file "sudoers" "\ root ALL=(ALL) ALL %wheel ALL=(ALL) NOPASSWD: ALL\n")) - (services (cons* (static-networking-service - "eth0" "10.0.2.15" - #:netmask "255.255.255.0" - #:gateway "10.0.2.2" - #:name-servers '(;; OpenNIC - "185.121.177.177" - "169.239.202.202" - ;; Google - "8.8.8.8" - "8.8.4.4")) + (services (cons* (service static-networking-service-type + (list (static-networking + (inherit %qemu-static-networking) + (name-servers '(;; OpenNIC + "185.121.177.177" + "169.239.202.202" + ;; Google + "8.8.8.8" + "8.8.4.4"))))) (service openssh-service-type (openssh-configuration (openssh openssh-sans-x) -- 2.38.5