projects/guix·blob mpd-fix-groups · refs

41 lines · 1.6 KiB

1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2024 Janneke Nieuwenhuizen <[email protected]>
3;;;
4;;; This file is part of GNU Guix.
5;;;
6;;; GNU Guix is free software; you can redistribute it and/or modify it
7;;; under the terms of the GNU General Public License as published by
8;;; the Free Software Foundation; either version 3 of the License, or (at
9;;; your option) any later version.
10;;;
11;;; GNU Guix is distributed in the hope that it will be useful, but
12;;; WITHOUT ANY WARRANTY; without even the implied warranty of
13;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14;;; GNU General Public License for more details.
15;;;
16;;; You should have received a copy of the GNU General Public License
17;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
18
19(define-module (gnu installer kernel)
20 #:use-module (gnu system hurd)
21 #:use-module (guix read-print)
22 #:export (kernel->configuration))
23
24(define-syntax-rule (G_ str)
25 ;; In this file, translatable strings are annotated with 'G_' so xgettext
26 ;; catches them, but translation happens later on at run time.
27 str)
28
29(define (kernel->configuration kernel dry-run?)
30 (if (equal? kernel "Hurd")
31 `((kernel %hurd-default-operating-system-kernel)
32 ,(comment (G_ ";; \"noide\" disables the gnumach IDE driver, enabling rumpdisk.\n"))
33 (kernel-arguments '("noide"))
34 (firmware '())
35 (hurd hurd)
36 (locale-libcs (list glibc/hurd))
37 (name-service-switch #f)
38 (essential-services (hurd-default-essential-services this-operating-system))
39 (privileged-programs '())
40 (setuid-programs %setuid-programs/hurd))
41 '()))