diff options
| author | Bruno Victal <mirai@makinata.eu> | 2023-03-10 20:21:22 +0000 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2023-03-13 15:08:32 +0100 |
| commit | 0f4a96ccd11115f7a1d8721aca7dc42e7a0a46c2 (patch) | |
| tree | ddea253571f4565d033d4e95e5d9c654c1288d75 /gnu/system.scm | |
| parent | 02be907a12dc291b02f6e895ca15f2fb20037185 (diff) | |
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>
Diffstat (limited to 'gnu/system.scm')
| -rw-r--r-- | gnu/system.scm | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/gnu/system.scm b/gnu/system.scm index 2947d1321f5..887e537b480 100644 --- a/gnu/system.scm +++ b/gnu/system.scm | |||
| @@ -967,9 +967,8 @@ syntactically correct." | |||
| 967 | "--check" "--file" #$file) | 967 | "--check" "--file" #$file) |
| 968 | (copy-file #$file #$output))))) | 968 | (copy-file #$file #$output))))) |
| 969 | 969 | ||
| 970 | (define (os-release) | 970 | (define os-release |
| 971 | (plain-file "os-release" | 971 | (plain-file "os-release" "\ |
| 972 | "\ | ||
| 973 | NAME=\"Guix System\" | 972 | NAME=\"Guix System\" |
| 974 | ID=guix | 973 | ID=guix |
| 975 | PRETTY_NAME=\"Guix System\" | 974 | PRETTY_NAME=\"Guix System\" |
| @@ -1092,15 +1091,15 @@ then | |||
| 1092 | source /run/current-system/profile/etc/profile.d/bash_completion.sh | 1091 | source /run/current-system/profile/etc/profile.d/bash_completion.sh |
| 1093 | fi\n"))) | 1092 | fi\n"))) |
| 1094 | (etc-service | 1093 | (etc-service |
| 1095 | `(("os-release" ,#~#$(os-release)) | 1094 | `(("os-release" ,os-release) |
| 1096 | ("services" ,(file-append net-base "/etc/services")) | 1095 | ("services" ,(file-append net-base "/etc/services")) |
| 1097 | ("protocols" ,(file-append net-base "/etc/protocols")) | 1096 | ("protocols" ,(file-append net-base "/etc/protocols")) |
| 1098 | ("rpc" ,(file-append net-base "/etc/rpc")) | 1097 | ("rpc" ,(file-append net-base "/etc/rpc")) |
| 1099 | ("login.defs" ,#~#$login.defs) | 1098 | ("login.defs" ,login.defs) |
| 1100 | ("issue" ,#~#$issue) | 1099 | ("issue" ,issue) |
| 1101 | ,@(if nsswitch `(("nsswitch.conf" ,#~#$nsswitch)) '()) | 1100 | ,@(if nsswitch `(("nsswitch.conf" ,nsswitch)) '()) |
| 1102 | ("profile" ,#~#$profile) | 1101 | ("profile" ,profile) |
| 1103 | ("bashrc" ,#~#$bashrc) | 1102 | ("bashrc" ,bashrc) |
| 1104 | ;; Write the operating-system-host-name to /etc/hostname to prevent | 1103 | ;; Write the operating-system-host-name to /etc/hostname to prevent |
| 1105 | ;; NetworkManager from changing the system's hostname when connecting | 1104 | ;; NetworkManager from changing the system's hostname when connecting |
| 1106 | ;; to certain networks. Some discussion at | 1105 | ;; to certain networks. Some discussion at |
