diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2026-03-19 18:46:45 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-03-20 13:27:16 +0100 |
| commit | 72e724cef438a7e16052dd1a38bf03027635f2bc (patch) | |
| tree | ec6ea468ae736b115af16611ec70bb136054171b | |
| parent | 1ae20f03f43a2af2bcde3751a2809fe152298d34 (diff) | |
services, tests: Refer to inherited field values where applicable.
* gnu/machine/hetzner.scm (operating-system-authorize): Refer to ‘services’
instead of calling ‘operating-system-user-services’.
* gnu/services/virtualization.scm (secret-service-operating-system): Likewise.
* gnu/tests.scm (operating-system-with-console-syslog): Likewise.
* gnu/tests/avahi.scm (%avahi-os): Likewise.
* gnu/tests/base.scm (%test-guix-daemon-unprivileged): Likewise.
* gnu/tests/nfs.scm (%nfs-os): Likewise.
(run-nfs-full-test): Likewise.
* gnu/system/vm.scm (virtualized-operating-system): Refer to ‘initrd-modules’
instead of calling ‘operating-system-initrd-modules’.
Change-Id: I00c5f5c1e171b174bf0ca709b2dbd13a2fe161b5
| -rw-r--r-- | gnu/machine/hetzner.scm | 2 | ||||
| -rw-r--r-- | gnu/services/virtualization.scm | 4 | ||||
| -rw-r--r-- | gnu/system/vm.scm | 4 | ||||
| -rw-r--r-- | gnu/tests.scm | 4 | ||||
| -rw-r--r-- | gnu/tests/avahi.scm | 5 | ||||
| -rw-r--r-- | gnu/tests/base.scm | 4 | ||||
| -rw-r--r-- | gnu/tests/nfs.scm | 6 |
7 files changed, 14 insertions, 15 deletions
diff --git a/gnu/machine/hetzner.scm b/gnu/machine/hetzner.scm index fdc22b4c058..c19f0ebc810 100644 --- a/gnu/machine/hetzner.scm +++ b/gnu/machine/hetzner.scm | |||
| @@ -152,7 +152,7 @@ | |||
| 152 | (operating-system | 152 | (operating-system |
| 153 | (inherit os) | 153 | (inherit os) |
| 154 | (services | 154 | (services |
| 155 | (modify-services (operating-system-user-services os) | 155 | (modify-services services |
| 156 | (guix-service-type | 156 | (guix-service-type |
| 157 | config => (guix-configuration | 157 | config => (guix-configuration |
| 158 | (inherit config) | 158 | (inherit config) |
diff --git a/gnu/services/virtualization.scm b/gnu/services/virtualization.scm index 3c9aadaae3f..7d15abaf619 100644 --- a/gnu/services/virtualization.scm +++ b/gnu/services/virtualization.scm | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2017 Ryan Moe <ryan.moe@gmail.com> | 2 | ;;; Copyright © 2017 Ryan Moe <ryan.moe@gmail.com> |
| 3 | ;;; Copyright © 2018, 2020-2025 Ludovic Courtès <ludo@gnu.org> | 3 | ;;; Copyright © 2018, 2020-2026 Ludovic Courtès <ludo@gnu.org> |
| 4 | ;;; Copyright © 2020, 2021, 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org> | 4 | ;;; Copyright © 2020, 2021, 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org> |
| 5 | ;;; Copyright © 2021 Timotej Lazar <timotej.lazar@araneo.si> | 5 | ;;; Copyright © 2021 Timotej Lazar <timotej.lazar@araneo.si> |
| 6 | ;;; Copyright © 2022, 2025 Oleg Pykhalov <go.wigust@gmail.com> | 6 | ;;; Copyright © 2022, 2025 Oleg Pykhalov <go.wigust@gmail.com> |
| @@ -1211,7 +1211,7 @@ that will be listening to receive secret keys on ADDRESS." | |||
| 1211 | ;; those keys are going to be overwritten by secrets received from the | 1211 | ;; those keys are going to be overwritten by secrets received from the |
| 1212 | ;; host anyway. | 1212 | ;; host anyway. |
| 1213 | (cons (service secret-service-type address) | 1213 | (cons (service secret-service-type address) |
| 1214 | (modify-services (operating-system-user-services os) | 1214 | (modify-services services |
| 1215 | (openssh-service-type | 1215 | (openssh-service-type |
| 1216 | config => (openssh-configuration | 1216 | config => (openssh-configuration |
| 1217 | (inherit config) | 1217 | (inherit config) |
diff --git a/gnu/system/vm.scm b/gnu/system/vm.scm index a3db2991d60..626b5039acc 100644 --- a/gnu/system/vm.scm +++ b/gnu/system/vm.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2013-2025 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2013-2026 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2016 Christine Lemmer-Webber <cwebber@dustycloud.org> | 3 | ;;; Copyright © 2016 Christine Lemmer-Webber <cwebber@dustycloud.org> |
| 4 | ;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name> | 4 | ;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name> |
| 5 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> | 5 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> |
| @@ -185,7 +185,7 @@ environment with the store shared with the host. MAPPINGS is a list of | |||
| 185 | ;; XXX In 6.14, the kernel renamed the "cirrus" module to "cirrus-qemu", so | 185 | ;; XXX In 6.14, the kernel renamed the "cirrus" module to "cirrus-qemu", so |
| 186 | ;; we account for that here. The renaming was done in this commit: | 186 | ;; we account for that here. The renaming was done in this commit: |
| 187 | ;; https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/commit/?id=5c3c99868aa2e0b68ac69f8050a6b9c994e73397 | 187 | ;; https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/commit/?id=5c3c99868aa2e0b68ac69f8050a6b9c994e73397 |
| 188 | (initrd-modules (let* ((modules (operating-system-initrd-modules os)) | 188 | (initrd-modules (let* ((modules initrd-modules) |
| 189 | (kernel-version | 189 | (kernel-version |
| 190 | (package-version (operating-system-kernel os))) | 190 | (package-version (operating-system-kernel os))) |
| 191 | (cirrus-module | 191 | (cirrus-module |
diff --git a/gnu/tests.scm b/gnu/tests.scm index abb70762089..aa0875ba5c1 100644 --- a/gnu/tests.scm +++ b/gnu/tests.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2016-2020, 2022-2025 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2016-2020, 2022-2026 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> | 3 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> |
| 4 | ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> | 4 | ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> |
| 5 | ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be> | 5 | ;;; Copyright © 2021 Maxime Devos <maximedevos@telenet.be> |
| @@ -274,7 +274,7 @@ the system under test." | |||
| 274 | (operating-system | 274 | (operating-system |
| 275 | (inherit os) | 275 | (inherit os) |
| 276 | (services | 276 | (services |
| 277 | (modify-services (operating-system-user-services os) | 277 | (modify-services services |
| 278 | (shepherd-system-log-service-type | 278 | (shepherd-system-log-service-type |
| 279 | config | 279 | config |
| 280 | => | 280 | => |
diff --git a/gnu/tests/avahi.scm b/gnu/tests/avahi.scm index d7f2fdaa72d..21d8995a6d5 100644 --- a/gnu/tests/avahi.scm +++ b/gnu/tests/avahi.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2016-2020, 2022, 2024-2025 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2016-2020, 2022, 2024-2026 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; | 3 | ;;; |
| 4 | ;;; This file is part of GNU Guix. | 4 | ;;; This file is part of GNU Guix. |
| 5 | ;;; | 5 | ;;; |
| @@ -46,8 +46,7 @@ | |||
| 46 | (service dhcpcd-service-type) ;needed for multicast | 46 | (service dhcpcd-service-type) ;needed for multicast |
| 47 | 47 | ||
| 48 | ;; Enable heavyweight debugging output. | 48 | ;; Enable heavyweight debugging output. |
| 49 | (modify-services (operating-system-user-services | 49 | (modify-services services |
| 50 | %simple-os) | ||
| 51 | (nscd-service-type config | 50 | (nscd-service-type config |
| 52 | => (nscd-configuration | 51 | => (nscd-configuration |
| 53 | (inherit config) | 52 | (inherit config) |
diff --git a/gnu/tests/base.scm b/gnu/tests/base.scm index b65e54222cd..92bf4b4a11e 100644 --- a/gnu/tests/base.scm +++ b/gnu/tests/base.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2016-2020, 2022, 2024-2025 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2016-2020, 2022, 2024-2026 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org> | 3 | ;;; Copyright © 2018 Clément Lassieur <clement@lassieur.org> |
| 4 | ;;; Copyright © 2022, 2025 Maxim Cournoyer <maxim@guixotic.coop> | 4 | ;;; Copyright © 2022, 2025 Maxim Cournoyer <maxim@guixotic.coop> |
| 5 | ;;; Copyright © 2022 Marius Bakke <marius@gnu.org> | 5 | ;;; Copyright © 2022 Marius Bakke <marius@gnu.org> |
| @@ -1348,7 +1348,7 @@ runs unprivileged.") | |||
| 1348 | (group "users")) | 1348 | (group "users")) |
| 1349 | %base-user-accounts)) | 1349 | %base-user-accounts)) |
| 1350 | (services | 1350 | (services |
| 1351 | (modify-services (operating-system-user-services base) | 1351 | (modify-services services |
| 1352 | (guix-service-type | 1352 | (guix-service-type |
| 1353 | config => (guix-configuration | 1353 | config => (guix-configuration |
| 1354 | (inherit config) | 1354 | (inherit config) |
diff --git a/gnu/tests/nfs.scm b/gnu/tests/nfs.scm index 0453d453820..e760c4502a1 100644 --- a/gnu/tests/nfs.scm +++ b/gnu/tests/nfs.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2016-2017, 2020-2021, 2025 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2016-2017, 2020-2021, 2025-2026 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2016 John Darrington <jmd@gnu.org> | 3 | ;;; Copyright © 2016 John Darrington <jmd@gnu.org> |
| 4 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> | 4 | ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> |
| 5 | ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> | 5 | ;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr> |
| @@ -170,7 +170,7 @@ | |||
| 170 | %base-file-systems)) | 170 | %base-file-systems)) |
| 171 | (services | 171 | (services |
| 172 | ;; Enable debugging output. | 172 | ;; Enable debugging output. |
| 173 | (modify-services (operating-system-user-services os) | 173 | (modify-services services |
| 174 | (shepherd-system-log-service-type | 174 | (shepherd-system-log-service-type |
| 175 | config | 175 | config |
| 176 | => | 176 | => |
| @@ -285,7 +285,7 @@ directories can be mounted.") | |||
| 285 | (exports '(("/export" | 285 | (exports '(("/export" |
| 286 | "*(rw,insecure,no_subtree_check,\ | 286 | "*(rw,insecure,no_subtree_check,\ |
| 287 | crossmnt,fsid=root,no_root_squash,insecure,async)"))))) | 287 | crossmnt,fsid=root,no_root_squash,insecure,async)"))))) |
| 288 | (modify-services (operating-system-user-services os) | 288 | (modify-services services |
| 289 | (shepherd-system-log-service-type | 289 | (shepherd-system-log-service-type |
| 290 | config | 290 | config |
| 291 | => | 291 | => |
