Replace deprecated hosts-file
modules/config/os.scm
117 | 117 | (cons (locale-definition | |
118 | 118 | (name "eo.utf8") (source "eo")) | |
119 | 119 | %default-locale-definitions)) | |
120 | - | (hosts-file | |
121 | - | (plain-file "hosts" | |
122 | - | (string-append "127.0.0.1 lepiller.eu localhost " host-name "\n" | |
123 | - | "::1 lepiller.eu localhost " host-name "\n" | |
124 | - | %facebook-host-aliases))) | |
125 | 120 | (packages (cons* openssh tmux neovim nss-certs %base-packages)) | |
126 | - | (services %base-services))) | |
121 | + | (services (cons* (service block-facebook-hosts-service-type) | |
122 | + | %base-services)))) | |
127 | 123 | ||
128 | 124 | (define (tyreunom-desktop-os host-name) | |
129 | 125 | (let ((system (tyreunom-os host-name))) | |
… | |||
138 | 134 | user)) | |
139 | 135 | (operating-system-users system))) | |
140 | 136 | (groups %base-groups) | |
141 | - | (hosts-file | |
142 | - | (plain-file "hosts" | |
143 | - | (string-append "127.0.0.1 " host-name ".lepiller.eu localhost " host-name "\n" | |
144 | - | "::1 " host-name ".lepiller.eu localhost " host-name "\n" | |
145 | - | %facebook-host-aliases))) | |
146 | 137 | (packages (cons* ibus ibus-anthy | |
147 | 138 | swaylock wpa-supplicant gvfs openbox xfce4-terminal | |
148 | 139 | (operating-system-packages system)))))) |