mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
system: Create "/etc/hostname".
* gnu/system.scm (operating-system-etc-service): Add a plain-file with the operating-system-host-name.
This commit is contained in:
parent
3daea4f12b
commit
c694520bb1
1 changed files with 5 additions and 0 deletions
|
@ -646,6 +646,11 @@ (define* (operating-system-etc-service os)
|
|||
("bashrc" ,#~#$bashrc)
|
||||
("hosts" ,#~#$(or (operating-system-hosts-file os)
|
||||
(default-/etc/hosts (operating-system-host-name os))))
|
||||
;; Write the operating-system-host-name to /etc/hostname to prevent
|
||||
;; NetworkManager from changing the system's hostname when connecting
|
||||
;; to certain networks. Some discussion at
|
||||
;; https://lists.gnu.org/archive/html/help-guix/2017-09/msg00037.html
|
||||
("hostname" ,(plain-file "hostname" (operating-system-host-name os)))
|
||||
("localtime" ,(file-append tzdata "/share/zoneinfo/"
|
||||
(operating-system-timezone os)))
|
||||
("sudoers" ,(operating-system-sudoers-file os))))))
|
||||
|
|
Loading…
Reference in a new issue