~dhruvin/builds.sr.ht-guix

aa4a1806c090c9e7e57827dd3a12b8eb936febc6 — Dhruvin Gandhi 7 months ago acd7374
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
1 files changed, 9 insertions(+), 10 deletions(-)

M images/guix/system.scm
M images/guix/system.scm => images/guix/system.scm +9 -10
@@ 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)