system: Remove redundant gexp-ungexp usage.
* gnu/system.scm (os-release): Convert to variable. (operating-system-etc-service): Remove redundant gexp-ungexps. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
02be907a12
commit
0f4a96ccd1
1 changed files with 8 additions and 9 deletions
|
@ -967,9 +967,8 @@ (define (validated-sudoers-file file)
|
||||||
"--check" "--file" #$file)
|
"--check" "--file" #$file)
|
||||||
(copy-file #$file #$output)))))
|
(copy-file #$file #$output)))))
|
||||||
|
|
||||||
(define (os-release)
|
(define os-release
|
||||||
(plain-file "os-release"
|
(plain-file "os-release" "\
|
||||||
"\
|
|
||||||
NAME=\"Guix System\"
|
NAME=\"Guix System\"
|
||||||
ID=guix
|
ID=guix
|
||||||
PRETTY_NAME=\"Guix System\"
|
PRETTY_NAME=\"Guix System\"
|
||||||
|
@ -1092,15 +1091,15 @@ (define* (operating-system-etc-service os)
|
||||||
source /run/current-system/profile/etc/profile.d/bash_completion.sh
|
source /run/current-system/profile/etc/profile.d/bash_completion.sh
|
||||||
fi\n")))
|
fi\n")))
|
||||||
(etc-service
|
(etc-service
|
||||||
`(("os-release" ,#~#$(os-release))
|
`(("os-release" ,os-release)
|
||||||
("services" ,(file-append net-base "/etc/services"))
|
("services" ,(file-append net-base "/etc/services"))
|
||||||
("protocols" ,(file-append net-base "/etc/protocols"))
|
("protocols" ,(file-append net-base "/etc/protocols"))
|
||||||
("rpc" ,(file-append net-base "/etc/rpc"))
|
("rpc" ,(file-append net-base "/etc/rpc"))
|
||||||
("login.defs" ,#~#$login.defs)
|
("login.defs" ,login.defs)
|
||||||
("issue" ,#~#$issue)
|
("issue" ,issue)
|
||||||
,@(if nsswitch `(("nsswitch.conf" ,#~#$nsswitch)) '())
|
,@(if nsswitch `(("nsswitch.conf" ,nsswitch)) '())
|
||||||
("profile" ,#~#$profile)
|
("profile" ,profile)
|
||||||
("bashrc" ,#~#$bashrc)
|
("bashrc" ,bashrc)
|
||||||
;; Write the operating-system-host-name to /etc/hostname to prevent
|
;; Write the operating-system-host-name to /etc/hostname to prevent
|
||||||
;; NetworkManager from changing the system's hostname when connecting
|
;; NetworkManager from changing the system's hostname when connecting
|
||||||
;; to certain networks. Some discussion at
|
;; to certain networks. Some discussion at
|
||||||
|
|
Loading…
Reference in a new issue