Fix issue with smtpd not finding hostname

Julien LepillerSun Jul 28 18:52:18+0200 2024

c748e52

Fix issue with smtpd not finding hostname

systems/hermes.scm

2222
(use-modules (gnu services networking))
2323
(use-modules (gnu services web))
2424
(use-modules (config certbot) (config dns) (config mail) (config network) (config os)
25-
             (config iptables) (config web))
25+
             (config iptables) (config web)
26+
             (data dns))
2627
2728
2829
;; NOTE: this config contains out-of band files.

6263
    (bootloader-configuration
6364
      (targets '("/dev/sda"))
6465
      (bootloader grub-bootloader)))
66+
  (hosts-file
67+
    (computed-file "hosts"
68+
      #~(with-output-to-file #$output
69+
          (lambda _
70+
            (format #t "~a\thermes.lepiller.eu\thermes\n" #$hermes-ip4)
71+
            (format #t "~a\thermes.lepiller.eu\thermes\n\n" #$hermes-ip6)
72+
            (format #t "127.0.0.1\tlocalhost\thermes")
73+
            (format #t "::1\tlocalhost\thermes")))))
6574
  (file-systems (cons (file-system
6675
                        (mount-point "/")
6776
                        (device (uuid "27798665-5606-4fde-8da8-cc371e603892"))