Fix issue with smtpd not finding hostname
systems/hermes.scm
22 | 22 | (use-modules (gnu services networking)) | |
23 | 23 | (use-modules (gnu services web)) | |
24 | 24 | (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)) | |
26 | 27 | ||
27 | 28 | ||
28 | 29 | ;; NOTE: this config contains out-of band files. | |
… | |||
62 | 63 | (bootloader-configuration | |
63 | 64 | (targets '("/dev/sda")) | |
64 | 65 | (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"))))) | |
65 | 74 | (file-systems (cons (file-system | |
66 | 75 | (mount-point "/") | |
67 | 76 | (device (uuid "27798665-5606-4fde-8da8-cc371e603892")) |