Dear all,

I am trying to configure a minimal server with DHCP and OpenSSH,
but "guix system build" fails with the following error message:

   guix system: error: service 'ssh-daemon' requires 'networking',
   which is not provided by any service

My configuration is below, and after rereading the manual and
poring over other people’s sample configurations, I still have no
idea what is missing. Can anybody help?

All best wishes,
Stefan

------------------------------------------------------------------

(use-modules (gnu))
(use-service-modules networking ssh)
(use-package-modules bootloaders ssh)

(operating-system
 (host-name "myhostname")
 (timezone "UTC")
 (bootloader (bootloader-configuration
              (bootloader grub-bootloader)
              (targets '("/dev/vda"))
              (terminal-outputs '(console))))
 (file-systems (cons*
                (file-system
                 (mount-point "/boot")
                 (device "/dev/vda16")
                 (type "ext4"))
                (file-system
                 (mount-point "/boot/efi")
                 (device "/dev/vda15")
                 (type "vfat"))
                (file-system
                 (mount-point "/")
                 (device "/dev/vda1")
                 (type "ext4"))
                %base-file-systems))
 (services
  (append (list
           (service dhcpd-service-type
                    (dhcpd-configuration
                     (config-file (local-file "/root/dhcpd.conf"))
                     (interfaces '("ens3"))))
           (service openssh-service-type
                    (openssh-configuration
                     (openssh openssh-sans-x)
                     (permit-root-login #t)
                     (authorized-keys
                      `(("root",(local-file "/root/.ssh/authorized_keys")))))))
           %base-services)))

------------------------------------------------------------------

Reply via email to