mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-25 20:19:18 -05:00
system: Produce a basic /etc/nsswitch.conf to honor /etc/hosts.
* gnu/system.scm (etc-directory): Produce nsswitch.conf.
This commit is contained in:
parent
7d6a52c0dc
commit
07b08343d7
1 changed files with 5 additions and 0 deletions
|
@ -291,6 +291,10 @@ (define* (etc-directory #:key
|
||||||
/run/current-system/profile/bin/bash\n"))
|
/run/current-system/profile/bin/bash\n"))
|
||||||
(issue (text-file "issue" issue))
|
(issue (text-file "issue" issue))
|
||||||
|
|
||||||
|
;; For now, generate a basic config so that /etc/hosts is honored.
|
||||||
|
(nsswitch (text-file "nsswitch.conf"
|
||||||
|
"hosts: files dns\n"))
|
||||||
|
|
||||||
;; TODO: Generate bashrc from packages' search-paths.
|
;; TODO: Generate bashrc from packages' search-paths.
|
||||||
(bashrc (text-file* "bashrc" "
|
(bashrc (text-file* "bashrc" "
|
||||||
export PS1='\\u@\\h \\w\\$ '
|
export PS1='\\u@\\h \\w\\$ '
|
||||||
|
@ -317,6 +321,7 @@ (define* (etc-directory #:key
|
||||||
("pam.d" ,#~#$pam.d)
|
("pam.d" ,#~#$pam.d)
|
||||||
("login.defs" ,#~#$login.defs)
|
("login.defs" ,#~#$login.defs)
|
||||||
("issue" ,#~#$issue)
|
("issue" ,#~#$issue)
|
||||||
|
("nsswitch.conf" ,#~#$nsswitch)
|
||||||
("skel" ,#~#$skel)
|
("skel" ,#~#$skel)
|
||||||
("shells" ,#~#$shells)
|
("shells" ,#~#$shells)
|
||||||
("profile" ,#~#$bashrc)
|
("profile" ,#~#$bashrc)
|
||||||
|
|
Loading…
Reference in a new issue