2018-12-05 06:41:48 +01:00
|
|
|
;;; GNU Guix --- Functional package management for GNU
|
|
|
|
;;; Copyright © 2018 Mathieu Othacehe <m.othacehe@gmail.com>
|
2022-08-02 23:27:52 +02:00
|
|
|
;;; Copyright © 2019, 2022 Ludovic Courtès <ludo@gnu.org>
|
installer: Add "Kernel" page to select the Hurd.
This adds a "Kernel" page to the installer with the option to (cross-) install
the Hurd, if applicable (only available on x86 machines for now).
* gnu/installer/newt.scm (kernel-page): New procedure.
(newt-installer)[kernel-page]: New field.
* gnu/installer/kernel.scm,
gnu/installer/newt/kernel.scm: New files.
* gnu/local.mk (INSTALLER_MODULES): Add them.
* gnu/installer.scm (installer-steps): Use them to select kernel if
applicable.
* gnu/installer/newt/partition.scm (run-label-page): Default to "msdos" when
instaling the Hurd.
(run-fs-type-page): Add ext2 for the hurd.
(run-partitioning-page-partition): Remove `entire-encrypted' option when
installing the Hurd.
* gnu/installer/services.scm (system-services->configuration): Cater for the
Hurd with %base-services/hurd, and with %base-packages/hurd that must always
be set.
(%system-services): Change to procedure. When installing the the Hurd, do not
recommend `ntp-service-type' and USE `openssh-sans-x' package for
`openssh-service-type'.
(system-service-none): New variable.
* gnu/installer/newt/services.scm (run-network-management-page): Include it
when installing the Hurd.
(run-desktop-environments-cbt-page): When installing the Hurd, recommend to
not select any desktop enviroment. Update users.
* gnu/installer/parted.scm (efi-installation?): Return #f when installing for
the Hurd.
(create-ext2-file-system): New procedure.
(user-fs-type-name, user-fs-type->mount-type, partition-filesystem-user-type,
format-user-partitions): Support `ext2'.
(<user-partition> partition->user-partition): Use `ext2' when installing the
Hurd.
(auto-partition!): Likewise. No swap partition when installing the Hurd.
* gnu/installer/final.scm (install-system): Cater for cross installation of
the Hurd.
(bootloader-configuration): Use `grub-minimal-bootloader' when installing the
Hurd.
(user-partition-missing-modules): Cater for empty user-partitions.
(initrd-configuration, user-partitions->configuration): Cater for the Hurd.
* gnu/installer/steps.scm (format-configuration,
configuration->file): Cater for the Hurd.
* gnu/system/hurd.scm (%desktop-services/hurd): New variable.
* gnu/installer/tests.scm (choose-kernel): New procedure.
* gnu/tests/install.scm (gui-test-program): Use it.
Change-Id: Ifafb27b8a2f933944c77223a27ec151757237e36
2024-10-20 15:13:16 +02:00
|
|
|
;;; Copyright © 2020, 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
|
2021-06-21 14:31:03 +02:00
|
|
|
;;; Copyright © 2021 Tobias Geerinckx-Rice <me@tobias.gr>
|
2021-04-23 20:50:15 +02:00
|
|
|
;;; Copyright © 2021 Leo Famulari <leo@famulari.name>
|
2023-07-01 22:48:11 +02:00
|
|
|
;;; Copyright © 2023 Denys Nykula <vegan@libre.net.ua>
|
2018-12-05 06:41:48 +01:00
|
|
|
;;;
|
|
|
|
;;; This file is part of GNU Guix.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is free software; you can redistribute it and/or modify it
|
|
|
|
;;; under the terms of the GNU General Public License as published by
|
|
|
|
;;; the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
;;; your option) any later version.
|
|
|
|
;;;
|
|
|
|
;;; GNU Guix is distributed in the hope that it will be useful, but
|
|
|
|
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
;;; GNU General Public License for more details.
|
|
|
|
;;;
|
|
|
|
;;; You should have received a copy of the GNU General Public License
|
|
|
|
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
(define-module (gnu installer services)
|
|
|
|
#:use-module (guix records)
|
2022-08-02 23:27:52 +02:00
|
|
|
#:use-module (guix read-print)
|
installer: Add "Kernel" page to select the Hurd.
This adds a "Kernel" page to the installer with the option to (cross-) install
the Hurd, if applicable (only available on x86 machines for now).
* gnu/installer/newt.scm (kernel-page): New procedure.
(newt-installer)[kernel-page]: New field.
* gnu/installer/kernel.scm,
gnu/installer/newt/kernel.scm: New files.
* gnu/local.mk (INSTALLER_MODULES): Add them.
* gnu/installer.scm (installer-steps): Use them to select kernel if
applicable.
* gnu/installer/newt/partition.scm (run-label-page): Default to "msdos" when
instaling the Hurd.
(run-fs-type-page): Add ext2 for the hurd.
(run-partitioning-page-partition): Remove `entire-encrypted' option when
installing the Hurd.
* gnu/installer/services.scm (system-services->configuration): Cater for the
Hurd with %base-services/hurd, and with %base-packages/hurd that must always
be set.
(%system-services): Change to procedure. When installing the the Hurd, do not
recommend `ntp-service-type' and USE `openssh-sans-x' package for
`openssh-service-type'.
(system-service-none): New variable.
* gnu/installer/newt/services.scm (run-network-management-page): Include it
when installing the Hurd.
(run-desktop-environments-cbt-page): When installing the Hurd, recommend to
not select any desktop enviroment. Update users.
* gnu/installer/parted.scm (efi-installation?): Return #f when installing for
the Hurd.
(create-ext2-file-system): New procedure.
(user-fs-type-name, user-fs-type->mount-type, partition-filesystem-user-type,
format-user-partitions): Support `ext2'.
(<user-partition> partition->user-partition): Use `ext2' when installing the
Hurd.
(auto-partition!): Likewise. No swap partition when installing the Hurd.
* gnu/installer/final.scm (install-system): Cater for cross installation of
the Hurd.
(bootloader-configuration): Use `grub-minimal-bootloader' when installing the
Hurd.
(user-partition-missing-modules): Cater for empty user-partitions.
(initrd-configuration, user-partitions->configuration): Cater for the Hurd.
* gnu/installer/steps.scm (format-configuration,
configuration->file): Cater for the Hurd.
* gnu/system/hurd.scm (%desktop-services/hurd): New variable.
* gnu/installer/tests.scm (choose-kernel): New procedure.
* gnu/tests/install.scm (gui-test-program): Use it.
Change-Id: Ifafb27b8a2f933944c77223a27ec151757237e36
2024-10-20 15:13:16 +02:00
|
|
|
#:use-module (guix utils)
|
2023-07-01 22:48:11 +02:00
|
|
|
#:use-module (ice-9 match)
|
2019-04-07 17:15:06 +02:00
|
|
|
#:use-module (srfi srfi-1)
|
|
|
|
#:export (system-service?
|
|
|
|
system-service-name
|
|
|
|
system-service-type
|
2019-04-28 21:45:16 +02:00
|
|
|
system-service-recommended?
|
2019-04-07 17:15:06 +02:00
|
|
|
system-service-snippet
|
2019-04-28 21:45:16 +02:00
|
|
|
system-service-packages
|
2018-12-05 06:41:48 +01:00
|
|
|
|
2019-04-07 17:15:06 +02:00
|
|
|
desktop-system-service?
|
installer: Add "Kernel" page to select the Hurd.
This adds a "Kernel" page to the installer with the option to (cross-) install
the Hurd, if applicable (only available on x86 machines for now).
* gnu/installer/newt.scm (kernel-page): New procedure.
(newt-installer)[kernel-page]: New field.
* gnu/installer/kernel.scm,
gnu/installer/newt/kernel.scm: New files.
* gnu/local.mk (INSTALLER_MODULES): Add them.
* gnu/installer.scm (installer-steps): Use them to select kernel if
applicable.
* gnu/installer/newt/partition.scm (run-label-page): Default to "msdos" when
instaling the Hurd.
(run-fs-type-page): Add ext2 for the hurd.
(run-partitioning-page-partition): Remove `entire-encrypted' option when
installing the Hurd.
* gnu/installer/services.scm (system-services->configuration): Cater for the
Hurd with %base-services/hurd, and with %base-packages/hurd that must always
be set.
(%system-services): Change to procedure. When installing the the Hurd, do not
recommend `ntp-service-type' and USE `openssh-sans-x' package for
`openssh-service-type'.
(system-service-none): New variable.
* gnu/installer/newt/services.scm (run-network-management-page): Include it
when installing the Hurd.
(run-desktop-environments-cbt-page): When installing the Hurd, recommend to
not select any desktop enviroment. Update users.
* gnu/installer/parted.scm (efi-installation?): Return #f when installing for
the Hurd.
(create-ext2-file-system): New procedure.
(user-fs-type-name, user-fs-type->mount-type, partition-filesystem-user-type,
format-user-partitions): Support `ext2'.
(<user-partition> partition->user-partition): Use `ext2' when installing the
Hurd.
(auto-partition!): Likewise. No swap partition when installing the Hurd.
* gnu/installer/final.scm (install-system): Cater for cross installation of
the Hurd.
(bootloader-configuration): Use `grub-minimal-bootloader' when installing the
Hurd.
(user-partition-missing-modules): Cater for empty user-partitions.
(initrd-configuration, user-partitions->configuration): Cater for the Hurd.
* gnu/installer/steps.scm (format-configuration,
configuration->file): Cater for the Hurd.
* gnu/system/hurd.scm (%desktop-services/hurd): New variable.
* gnu/installer/tests.scm (choose-kernel): New procedure.
* gnu/tests/install.scm (gui-test-program): Use it.
Change-Id: Ifafb27b8a2f933944c77223a27ec151757237e36
2024-10-20 15:13:16 +02:00
|
|
|
system-service-none
|
2018-12-05 06:41:48 +01:00
|
|
|
|
2019-04-07 17:15:06 +02:00
|
|
|
%system-services
|
|
|
|
system-services->configuration))
|
|
|
|
|
2022-08-02 23:27:52 +02:00
|
|
|
(define-syntax-rule (G_ str)
|
|
|
|
;; In this file, translatable strings are annotated with 'G_' so xgettext
|
|
|
|
;; catches them, but translation happens later on at run time.
|
|
|
|
str)
|
|
|
|
|
2019-04-07 17:15:06 +02:00
|
|
|
(define-record-type* <system-service>
|
|
|
|
system-service make-system-service
|
|
|
|
system-service?
|
|
|
|
(name system-service-name) ;string
|
2021-06-21 13:57:09 +02:00
|
|
|
(type system-service-type) ;'desktop|'networking|…
|
2019-04-28 21:45:16 +02:00
|
|
|
(recommended? system-service-recommended? ;Boolean
|
|
|
|
(default #f))
|
2019-04-17 00:27:04 +02:00
|
|
|
(snippet system-service-snippet ;list of sexps
|
|
|
|
(default '()))
|
|
|
|
(packages system-service-packages ;list of sexps
|
|
|
|
(default '())))
|
2018-12-05 06:41:48 +01:00
|
|
|
|
installer: Add "Kernel" page to select the Hurd.
This adds a "Kernel" page to the installer with the option to (cross-) install
the Hurd, if applicable (only available on x86 machines for now).
* gnu/installer/newt.scm (kernel-page): New procedure.
(newt-installer)[kernel-page]: New field.
* gnu/installer/kernel.scm,
gnu/installer/newt/kernel.scm: New files.
* gnu/local.mk (INSTALLER_MODULES): Add them.
* gnu/installer.scm (installer-steps): Use them to select kernel if
applicable.
* gnu/installer/newt/partition.scm (run-label-page): Default to "msdos" when
instaling the Hurd.
(run-fs-type-page): Add ext2 for the hurd.
(run-partitioning-page-partition): Remove `entire-encrypted' option when
installing the Hurd.
* gnu/installer/services.scm (system-services->configuration): Cater for the
Hurd with %base-services/hurd, and with %base-packages/hurd that must always
be set.
(%system-services): Change to procedure. When installing the the Hurd, do not
recommend `ntp-service-type' and USE `openssh-sans-x' package for
`openssh-service-type'.
(system-service-none): New variable.
* gnu/installer/newt/services.scm (run-network-management-page): Include it
when installing the Hurd.
(run-desktop-environments-cbt-page): When installing the Hurd, recommend to
not select any desktop enviroment. Update users.
* gnu/installer/parted.scm (efi-installation?): Return #f when installing for
the Hurd.
(create-ext2-file-system): New procedure.
(user-fs-type-name, user-fs-type->mount-type, partition-filesystem-user-type,
format-user-partitions): Support `ext2'.
(<user-partition> partition->user-partition): Use `ext2' when installing the
Hurd.
(auto-partition!): Likewise. No swap partition when installing the Hurd.
* gnu/installer/final.scm (install-system): Cater for cross installation of
the Hurd.
(bootloader-configuration): Use `grub-minimal-bootloader' when installing the
Hurd.
(user-partition-missing-modules): Cater for empty user-partitions.
(initrd-configuration, user-partitions->configuration): Cater for the Hurd.
* gnu/installer/steps.scm (format-configuration,
configuration->file): Cater for the Hurd.
* gnu/system/hurd.scm (%desktop-services/hurd): New variable.
* gnu/installer/tests.scm (choose-kernel): New procedure.
* gnu/tests/install.scm (gui-test-program): Use it.
Change-Id: Ifafb27b8a2f933944c77223a27ec151757237e36
2024-10-20 15:13:16 +02:00
|
|
|
(define system-service-none
|
|
|
|
(system-service
|
|
|
|
(name (G_ "None"))
|
|
|
|
(type 'network-management)
|
|
|
|
(snippet '())))
|
|
|
|
|
|
|
|
(define (%system-services)
|
2019-04-07 17:15:06 +02:00
|
|
|
(let-syntax ((desktop-environment (syntax-rules ()
|
|
|
|
((_ fields ...)
|
|
|
|
(system-service
|
|
|
|
(type 'desktop)
|
2022-08-02 23:27:52 +02:00
|
|
|
fields ...)))))
|
2019-04-07 17:15:06 +02:00
|
|
|
(list
|
2021-06-21 13:57:09 +02:00
|
|
|
;; This is the list of desktop environments supported as services.
|
2019-04-07 17:15:06 +02:00
|
|
|
(desktop-environment
|
|
|
|
(name "GNOME")
|
2019-04-17 00:27:04 +02:00
|
|
|
(snippet '((service gnome-desktop-service-type))))
|
2019-04-07 17:15:06 +02:00
|
|
|
(desktop-environment
|
|
|
|
(name "Xfce")
|
2019-04-17 00:27:04 +02:00
|
|
|
(snippet '((service xfce-desktop-service-type))))
|
2019-04-07 17:15:06 +02:00
|
|
|
(desktop-environment
|
|
|
|
(name "MATE")
|
2019-04-17 00:27:04 +02:00
|
|
|
(snippet '((service mate-desktop-service-type))))
|
2019-04-07 17:15:06 +02:00
|
|
|
(desktop-environment
|
|
|
|
(name "Enlightenment")
|
2019-04-17 00:27:04 +02:00
|
|
|
(snippet '((service enlightenment-desktop-service-type))))
|
|
|
|
(desktop-environment
|
|
|
|
(name "Openbox")
|
|
|
|
(packages '((specification->package "openbox"))))
|
|
|
|
(desktop-environment
|
|
|
|
(name "awesome")
|
|
|
|
(packages '((specification->package "awesome"))))
|
|
|
|
(desktop-environment
|
|
|
|
(name "i3")
|
2019-06-07 22:30:54 +02:00
|
|
|
(packages (map (lambda (package)
|
|
|
|
`(specification->package ,package))
|
|
|
|
'("i3-wm" "i3status" "dmenu" "st"))))
|
2019-04-17 00:27:04 +02:00
|
|
|
(desktop-environment
|
|
|
|
(name "ratpoison")
|
2019-06-07 22:32:19 +02:00
|
|
|
(packages '((specification->package "ratpoison")
|
|
|
|
(specification->package "xterm"))))
|
2020-10-11 12:45:00 +02:00
|
|
|
(desktop-environment
|
|
|
|
(name "Emacs EXWM")
|
|
|
|
(packages '((specification->package "emacs")
|
|
|
|
(specification->package "emacs-exwm")
|
|
|
|
(specification->package "emacs-desktop-environment"))))
|
2019-04-07 18:02:39 +02:00
|
|
|
|
|
|
|
;; Networking.
|
|
|
|
(system-service
|
2019-04-07 21:41:51 +02:00
|
|
|
(name (G_ "OpenSSH secure shell daemon (sshd)"))
|
2019-04-07 18:02:39 +02:00
|
|
|
(type 'networking)
|
2022-08-02 23:27:52 +02:00
|
|
|
(snippet `(,(vertical-space 1)
|
|
|
|
,(comment
|
|
|
|
(G_ "\
|
|
|
|
;; To configure OpenSSH, pass an 'openssh-configuration'
|
|
|
|
;; record as a second argument to 'service' below.\n"))
|
installer: Add "Kernel" page to select the Hurd.
This adds a "Kernel" page to the installer with the option to (cross-) install
the Hurd, if applicable (only available on x86 machines for now).
* gnu/installer/newt.scm (kernel-page): New procedure.
(newt-installer)[kernel-page]: New field.
* gnu/installer/kernel.scm,
gnu/installer/newt/kernel.scm: New files.
* gnu/local.mk (INSTALLER_MODULES): Add them.
* gnu/installer.scm (installer-steps): Use them to select kernel if
applicable.
* gnu/installer/newt/partition.scm (run-label-page): Default to "msdos" when
instaling the Hurd.
(run-fs-type-page): Add ext2 for the hurd.
(run-partitioning-page-partition): Remove `entire-encrypted' option when
installing the Hurd.
* gnu/installer/services.scm (system-services->configuration): Cater for the
Hurd with %base-services/hurd, and with %base-packages/hurd that must always
be set.
(%system-services): Change to procedure. When installing the the Hurd, do not
recommend `ntp-service-type' and USE `openssh-sans-x' package for
`openssh-service-type'.
(system-service-none): New variable.
* gnu/installer/newt/services.scm (run-network-management-page): Include it
when installing the Hurd.
(run-desktop-environments-cbt-page): When installing the Hurd, recommend to
not select any desktop enviroment. Update users.
* gnu/installer/parted.scm (efi-installation?): Return #f when installing for
the Hurd.
(create-ext2-file-system): New procedure.
(user-fs-type-name, user-fs-type->mount-type, partition-filesystem-user-type,
format-user-partitions): Support `ext2'.
(<user-partition> partition->user-partition): Use `ext2' when installing the
Hurd.
(auto-partition!): Likewise. No swap partition when installing the Hurd.
* gnu/installer/final.scm (install-system): Cater for cross installation of
the Hurd.
(bootloader-configuration): Use `grub-minimal-bootloader' when installing the
Hurd.
(user-partition-missing-modules): Cater for empty user-partitions.
(initrd-configuration, user-partitions->configuration): Cater for the Hurd.
* gnu/installer/steps.scm (format-configuration,
configuration->file): Cater for the Hurd.
* gnu/system/hurd.scm (%desktop-services/hurd): New variable.
* gnu/installer/tests.scm (choose-kernel): New procedure.
* gnu/tests/install.scm (gui-test-program): Use it.
Change-Id: Ifafb27b8a2f933944c77223a27ec151757237e36
2024-10-20 15:13:16 +02:00
|
|
|
,(if (target-hurd?)
|
|
|
|
'(service openssh-service-type
|
|
|
|
(openssh-configuration
|
|
|
|
(openssh openssh-sans-x)))
|
|
|
|
'(service openssh-service-type)))))
|
2019-04-07 18:02:39 +02:00
|
|
|
(system-service
|
2019-04-07 21:41:51 +02:00
|
|
|
(name (G_ "Tor anonymous network router"))
|
2019-04-07 18:02:39 +02:00
|
|
|
(type 'networking)
|
2019-04-17 00:27:04 +02:00
|
|
|
(snippet '((service tor-service-type))))
|
2019-04-07 21:20:10 +02:00
|
|
|
|
2021-04-23 20:50:15 +02:00
|
|
|
;; Miscellaneous system administration services.
|
|
|
|
(system-service
|
|
|
|
(name (G_ "Network time service (NTP), to set the clock automatically"))
|
|
|
|
(type 'administration)
|
installer: Add "Kernel" page to select the Hurd.
This adds a "Kernel" page to the installer with the option to (cross-) install
the Hurd, if applicable (only available on x86 machines for now).
* gnu/installer/newt.scm (kernel-page): New procedure.
(newt-installer)[kernel-page]: New field.
* gnu/installer/kernel.scm,
gnu/installer/newt/kernel.scm: New files.
* gnu/local.mk (INSTALLER_MODULES): Add them.
* gnu/installer.scm (installer-steps): Use them to select kernel if
applicable.
* gnu/installer/newt/partition.scm (run-label-page): Default to "msdos" when
instaling the Hurd.
(run-fs-type-page): Add ext2 for the hurd.
(run-partitioning-page-partition): Remove `entire-encrypted' option when
installing the Hurd.
* gnu/installer/services.scm (system-services->configuration): Cater for the
Hurd with %base-services/hurd, and with %base-packages/hurd that must always
be set.
(%system-services): Change to procedure. When installing the the Hurd, do not
recommend `ntp-service-type' and USE `openssh-sans-x' package for
`openssh-service-type'.
(system-service-none): New variable.
* gnu/installer/newt/services.scm (run-network-management-page): Include it
when installing the Hurd.
(run-desktop-environments-cbt-page): When installing the Hurd, recommend to
not select any desktop enviroment. Update users.
* gnu/installer/parted.scm (efi-installation?): Return #f when installing for
the Hurd.
(create-ext2-file-system): New procedure.
(user-fs-type-name, user-fs-type->mount-type, partition-filesystem-user-type,
format-user-partitions): Support `ext2'.
(<user-partition> partition->user-partition): Use `ext2' when installing the
Hurd.
(auto-partition!): Likewise. No swap partition when installing the Hurd.
* gnu/installer/final.scm (install-system): Cater for cross installation of
the Hurd.
(bootloader-configuration): Use `grub-minimal-bootloader' when installing the
Hurd.
(user-partition-missing-modules): Cater for empty user-partitions.
(initrd-configuration, user-partitions->configuration): Cater for the Hurd.
* gnu/installer/steps.scm (format-configuration,
configuration->file): Cater for the Hurd.
* gnu/system/hurd.scm (%desktop-services/hurd): New variable.
* gnu/installer/tests.scm (choose-kernel): New procedure.
* gnu/tests/install.scm (gui-test-program): Use it.
Change-Id: Ifafb27b8a2f933944c77223a27ec151757237e36
2024-10-20 15:13:16 +02:00
|
|
|
(recommended? (not (target-hurd?)))
|
2021-04-23 20:50:15 +02:00
|
|
|
(snippet '((service ntp-service-type))))
|
2021-04-24 02:42:28 +02:00
|
|
|
(system-service
|
|
|
|
(name (G_ "GPM mouse daemon, to use the mouse on the console"))
|
|
|
|
(type 'administration)
|
|
|
|
(snippet '((service gpm-service-type))))
|
2021-04-23 20:50:15 +02:00
|
|
|
|
2019-04-07 21:20:10 +02:00
|
|
|
;; Network connectivity management.
|
|
|
|
(system-service
|
2019-04-07 21:41:51 +02:00
|
|
|
(name (G_ "NetworkManager network connection manager"))
|
2019-04-07 21:20:10 +02:00
|
|
|
(type 'network-management)
|
2019-04-12 23:19:41 +02:00
|
|
|
(snippet '((service network-manager-service-type)
|
|
|
|
(service wpa-supplicant-service-type))))
|
2019-04-07 21:20:10 +02:00
|
|
|
(system-service
|
2019-04-07 21:41:51 +02:00
|
|
|
(name (G_ "Connman network connection manager"))
|
2019-04-07 21:20:10 +02:00
|
|
|
(type 'network-management)
|
2019-04-12 23:19:41 +02:00
|
|
|
(snippet '((service connman-service-type)
|
|
|
|
(service wpa-supplicant-service-type))))
|
2019-04-07 21:20:10 +02:00
|
|
|
(system-service
|
2019-04-07 21:41:51 +02:00
|
|
|
(name (G_ "DHCP client (dynamic IP address assignment)"))
|
2019-04-07 21:20:10 +02:00
|
|
|
(type 'network-management)
|
2021-06-21 14:31:03 +02:00
|
|
|
(snippet '((service dhcp-client-service-type))))
|
2024-10-20 17:19:01 +02:00
|
|
|
(system-service
|
|
|
|
(name (G_ "Static networking service."))
|
|
|
|
(type 'network-management)
|
|
|
|
(snippet `((service
|
|
|
|
static-networking-service-type
|
|
|
|
(list %loopback-static-networking
|
|
|
|
(static-networking
|
|
|
|
(addresses
|
|
|
|
(list
|
|
|
|
(network-address
|
|
|
|
(device "eth0")
|
|
|
|
,(comment (G_ ";; Fill-in your IP.\n"))
|
|
|
|
(value "192.168.178.10/24"))))
|
|
|
|
(routes
|
|
|
|
(list (network-route
|
|
|
|
(destination "default")
|
|
|
|
,(comment (G_ ";; Fill-in your gateway IP.\n"))
|
|
|
|
(gateway "192.168.178.1"))))
|
|
|
|
(requirement '())
|
|
|
|
(provision '(networking))
|
|
|
|
,(comment (G_ ";; Fill-in your nameservers.\n"))
|
|
|
|
(name-servers '("192.168.178.1"))))))))
|
2021-06-21 14:31:03 +02:00
|
|
|
|
|
|
|
;; Dealing with documents.
|
|
|
|
(system-service
|
|
|
|
(name (G_ "CUPS printing system (no Web interface by default)"))
|
|
|
|
(type 'document)
|
|
|
|
(snippet '((service cups-service-type)))))))
|
2019-04-07 17:15:06 +02:00
|
|
|
|
|
|
|
(define (desktop-system-service? service)
|
|
|
|
"Return true if SERVICE is a desktop environment service."
|
|
|
|
(eq? 'desktop (system-service-type service)))
|
2018-12-05 06:41:48 +01:00
|
|
|
|
2019-04-07 17:15:06 +02:00
|
|
|
(define (system-services->configuration services)
|
|
|
|
"Return the configuration field for SERVICES."
|
2019-04-17 00:27:04 +02:00
|
|
|
(let* ((snippets (append-map system-service-snippet services))
|
|
|
|
(packages (append-map system-service-packages services))
|
2019-04-07 17:15:06 +02:00
|
|
|
(desktop? (find desktop-system-service? services))
|
|
|
|
(base (if desktop?
|
installer: Add "Kernel" page to select the Hurd.
This adds a "Kernel" page to the installer with the option to (cross-) install
the Hurd, if applicable (only available on x86 machines for now).
* gnu/installer/newt.scm (kernel-page): New procedure.
(newt-installer)[kernel-page]: New field.
* gnu/installer/kernel.scm,
gnu/installer/newt/kernel.scm: New files.
* gnu/local.mk (INSTALLER_MODULES): Add them.
* gnu/installer.scm (installer-steps): Use them to select kernel if
applicable.
* gnu/installer/newt/partition.scm (run-label-page): Default to "msdos" when
instaling the Hurd.
(run-fs-type-page): Add ext2 for the hurd.
(run-partitioning-page-partition): Remove `entire-encrypted' option when
installing the Hurd.
* gnu/installer/services.scm (system-services->configuration): Cater for the
Hurd with %base-services/hurd, and with %base-packages/hurd that must always
be set.
(%system-services): Change to procedure. When installing the the Hurd, do not
recommend `ntp-service-type' and USE `openssh-sans-x' package for
`openssh-service-type'.
(system-service-none): New variable.
* gnu/installer/newt/services.scm (run-network-management-page): Include it
when installing the Hurd.
(run-desktop-environments-cbt-page): When installing the Hurd, recommend to
not select any desktop enviroment. Update users.
* gnu/installer/parted.scm (efi-installation?): Return #f when installing for
the Hurd.
(create-ext2-file-system): New procedure.
(user-fs-type-name, user-fs-type->mount-type, partition-filesystem-user-type,
format-user-partitions): Support `ext2'.
(<user-partition> partition->user-partition): Use `ext2' when installing the
Hurd.
(auto-partition!): Likewise. No swap partition when installing the Hurd.
* gnu/installer/final.scm (install-system): Cater for cross installation of
the Hurd.
(bootloader-configuration): Use `grub-minimal-bootloader' when installing the
Hurd.
(user-partition-missing-modules): Cater for empty user-partitions.
(initrd-configuration, user-partitions->configuration): Cater for the Hurd.
* gnu/installer/steps.scm (format-configuration,
configuration->file): Cater for the Hurd.
* gnu/system/hurd.scm (%desktop-services/hurd): New variable.
* gnu/installer/tests.scm (choose-kernel): New procedure.
* gnu/tests/install.scm (gui-test-program): Use it.
Change-Id: Ifafb27b8a2f933944c77223a27ec151757237e36
2024-10-20 15:13:16 +02:00
|
|
|
(if (target-hurd?)
|
|
|
|
'%desktop-services/hurd
|
|
|
|
'%desktop-services)
|
|
|
|
(if (target-hurd?)
|
|
|
|
'%base-services/hurd
|
|
|
|
'%base-services)))
|
2023-07-01 22:48:11 +02:00
|
|
|
(native-console-font (match (getenv "LANGUAGE")
|
|
|
|
((or "be" "bg" "el" "eo" "kk" "ky"
|
|
|
|
"mk" "mn" "ru" "sr" "tg" "uk")
|
|
|
|
"LatGrkCyr-8x16")
|
|
|
|
(_ #f)))
|
|
|
|
(services (if native-console-font
|
|
|
|
`(modify-services ,base
|
|
|
|
(console-font-service-type
|
|
|
|
config => (map (lambda (tty)
|
|
|
|
(cons (car tty)
|
|
|
|
,native-console-font))
|
|
|
|
config)))
|
|
|
|
base))
|
2022-11-20 22:56:23 +01:00
|
|
|
(service-heading (list (vertical-space 1)
|
|
|
|
(comment (G_ "\
|
2022-08-02 23:27:52 +02:00
|
|
|
;; Below is the list of system services. To search for available
|
2022-11-20 22:56:23 +01:00
|
|
|
;; services, run 'guix system search KEYWORD' in a terminal.\n"))))
|
|
|
|
(package-heading (list (vertical-space 1)
|
|
|
|
(comment (G_ "\
|
|
|
|
;; Packages installed system-wide. Users can also install packages
|
|
|
|
;; under their own account: use 'guix search KEYWORD' to search
|
|
|
|
;; for packages and 'guix install PACKAGE' to install a package.\n")))))
|
2022-08-02 23:27:52 +02:00
|
|
|
|
2019-04-07 17:15:06 +02:00
|
|
|
(if (null? snippets)
|
2019-04-17 00:27:04 +02:00
|
|
|
`(,@(if (null? packages)
|
installer: Add "Kernel" page to select the Hurd.
This adds a "Kernel" page to the installer with the option to (cross-) install
the Hurd, if applicable (only available on x86 machines for now).
* gnu/installer/newt.scm (kernel-page): New procedure.
(newt-installer)[kernel-page]: New field.
* gnu/installer/kernel.scm,
gnu/installer/newt/kernel.scm: New files.
* gnu/local.mk (INSTALLER_MODULES): Add them.
* gnu/installer.scm (installer-steps): Use them to select kernel if
applicable.
* gnu/installer/newt/partition.scm (run-label-page): Default to "msdos" when
instaling the Hurd.
(run-fs-type-page): Add ext2 for the hurd.
(run-partitioning-page-partition): Remove `entire-encrypted' option when
installing the Hurd.
* gnu/installer/services.scm (system-services->configuration): Cater for the
Hurd with %base-services/hurd, and with %base-packages/hurd that must always
be set.
(%system-services): Change to procedure. When installing the the Hurd, do not
recommend `ntp-service-type' and USE `openssh-sans-x' package for
`openssh-service-type'.
(system-service-none): New variable.
* gnu/installer/newt/services.scm (run-network-management-page): Include it
when installing the Hurd.
(run-desktop-environments-cbt-page): When installing the Hurd, recommend to
not select any desktop enviroment. Update users.
* gnu/installer/parted.scm (efi-installation?): Return #f when installing for
the Hurd.
(create-ext2-file-system): New procedure.
(user-fs-type-name, user-fs-type->mount-type, partition-filesystem-user-type,
format-user-partitions): Support `ext2'.
(<user-partition> partition->user-partition): Use `ext2' when installing the
Hurd.
(auto-partition!): Likewise. No swap partition when installing the Hurd.
* gnu/installer/final.scm (install-system): Cater for cross installation of
the Hurd.
(bootloader-configuration): Use `grub-minimal-bootloader' when installing the
Hurd.
(user-partition-missing-modules): Cater for empty user-partitions.
(initrd-configuration, user-partitions->configuration): Cater for the Hurd.
* gnu/installer/steps.scm (format-configuration,
configuration->file): Cater for the Hurd.
* gnu/system/hurd.scm (%desktop-services/hurd): New variable.
* gnu/installer/tests.scm (choose-kernel): New procedure.
* gnu/tests/install.scm (gui-test-program): Use it.
Change-Id: Ifafb27b8a2f933944c77223a27ec151757237e36
2024-10-20 15:13:16 +02:00
|
|
|
(if (target-hurd?)
|
|
|
|
`(,@package-heading
|
|
|
|
(packages %base-packages/hurd))
|
|
|
|
'())
|
2022-11-20 22:56:23 +01:00
|
|
|
`(,@package-heading
|
|
|
|
(packages (append (list ,@packages)
|
installer: Add "Kernel" page to select the Hurd.
This adds a "Kernel" page to the installer with the option to (cross-) install
the Hurd, if applicable (only available on x86 machines for now).
* gnu/installer/newt.scm (kernel-page): New procedure.
(newt-installer)[kernel-page]: New field.
* gnu/installer/kernel.scm,
gnu/installer/newt/kernel.scm: New files.
* gnu/local.mk (INSTALLER_MODULES): Add them.
* gnu/installer.scm (installer-steps): Use them to select kernel if
applicable.
* gnu/installer/newt/partition.scm (run-label-page): Default to "msdos" when
instaling the Hurd.
(run-fs-type-page): Add ext2 for the hurd.
(run-partitioning-page-partition): Remove `entire-encrypted' option when
installing the Hurd.
* gnu/installer/services.scm (system-services->configuration): Cater for the
Hurd with %base-services/hurd, and with %base-packages/hurd that must always
be set.
(%system-services): Change to procedure. When installing the the Hurd, do not
recommend `ntp-service-type' and USE `openssh-sans-x' package for
`openssh-service-type'.
(system-service-none): New variable.
* gnu/installer/newt/services.scm (run-network-management-page): Include it
when installing the Hurd.
(run-desktop-environments-cbt-page): When installing the Hurd, recommend to
not select any desktop enviroment. Update users.
* gnu/installer/parted.scm (efi-installation?): Return #f when installing for
the Hurd.
(create-ext2-file-system): New procedure.
(user-fs-type-name, user-fs-type->mount-type, partition-filesystem-user-type,
format-user-partitions): Support `ext2'.
(<user-partition> partition->user-partition): Use `ext2' when installing the
Hurd.
(auto-partition!): Likewise. No swap partition when installing the Hurd.
* gnu/installer/final.scm (install-system): Cater for cross installation of
the Hurd.
(bootloader-configuration): Use `grub-minimal-bootloader' when installing the
Hurd.
(user-partition-missing-modules): Cater for empty user-partitions.
(initrd-configuration, user-partitions->configuration): Cater for the Hurd.
* gnu/installer/steps.scm (format-configuration,
configuration->file): Cater for the Hurd.
* gnu/system/hurd.scm (%desktop-services/hurd): New variable.
* gnu/installer/tests.scm (choose-kernel): New procedure.
* gnu/tests/install.scm (gui-test-program): Use it.
Change-Id: Ifafb27b8a2f933944c77223a27ec151757237e36
2024-10-20 15:13:16 +02:00
|
|
|
,(if (target-hurd?)
|
|
|
|
'%base-packages/hurd
|
|
|
|
'%base-packages)))))
|
2022-08-02 23:27:52 +02:00
|
|
|
|
2022-11-20 22:56:23 +01:00
|
|
|
,@service-heading
|
2023-07-01 22:48:11 +02:00
|
|
|
(services ,services))
|
2019-04-17 00:27:04 +02:00
|
|
|
`(,@(if (null? packages)
|
installer: Add "Kernel" page to select the Hurd.
This adds a "Kernel" page to the installer with the option to (cross-) install
the Hurd, if applicable (only available on x86 machines for now).
* gnu/installer/newt.scm (kernel-page): New procedure.
(newt-installer)[kernel-page]: New field.
* gnu/installer/kernel.scm,
gnu/installer/newt/kernel.scm: New files.
* gnu/local.mk (INSTALLER_MODULES): Add them.
* gnu/installer.scm (installer-steps): Use them to select kernel if
applicable.
* gnu/installer/newt/partition.scm (run-label-page): Default to "msdos" when
instaling the Hurd.
(run-fs-type-page): Add ext2 for the hurd.
(run-partitioning-page-partition): Remove `entire-encrypted' option when
installing the Hurd.
* gnu/installer/services.scm (system-services->configuration): Cater for the
Hurd with %base-services/hurd, and with %base-packages/hurd that must always
be set.
(%system-services): Change to procedure. When installing the the Hurd, do not
recommend `ntp-service-type' and USE `openssh-sans-x' package for
`openssh-service-type'.
(system-service-none): New variable.
* gnu/installer/newt/services.scm (run-network-management-page): Include it
when installing the Hurd.
(run-desktop-environments-cbt-page): When installing the Hurd, recommend to
not select any desktop enviroment. Update users.
* gnu/installer/parted.scm (efi-installation?): Return #f when installing for
the Hurd.
(create-ext2-file-system): New procedure.
(user-fs-type-name, user-fs-type->mount-type, partition-filesystem-user-type,
format-user-partitions): Support `ext2'.
(<user-partition> partition->user-partition): Use `ext2' when installing the
Hurd.
(auto-partition!): Likewise. No swap partition when installing the Hurd.
* gnu/installer/final.scm (install-system): Cater for cross installation of
the Hurd.
(bootloader-configuration): Use `grub-minimal-bootloader' when installing the
Hurd.
(user-partition-missing-modules): Cater for empty user-partitions.
(initrd-configuration, user-partitions->configuration): Cater for the Hurd.
* gnu/installer/steps.scm (format-configuration,
configuration->file): Cater for the Hurd.
* gnu/system/hurd.scm (%desktop-services/hurd): New variable.
* gnu/installer/tests.scm (choose-kernel): New procedure.
* gnu/tests/install.scm (gui-test-program): Use it.
Change-Id: Ifafb27b8a2f933944c77223a27ec151757237e36
2024-10-20 15:13:16 +02:00
|
|
|
(if (target-hurd?)
|
|
|
|
`(,@package-heading
|
|
|
|
(packages %base-packages/hurd))
|
|
|
|
'())
|
2022-11-20 22:56:23 +01:00
|
|
|
`(,@package-heading
|
|
|
|
(packages (append (list ,@packages)
|
installer: Add "Kernel" page to select the Hurd.
This adds a "Kernel" page to the installer with the option to (cross-) install
the Hurd, if applicable (only available on x86 machines for now).
* gnu/installer/newt.scm (kernel-page): New procedure.
(newt-installer)[kernel-page]: New field.
* gnu/installer/kernel.scm,
gnu/installer/newt/kernel.scm: New files.
* gnu/local.mk (INSTALLER_MODULES): Add them.
* gnu/installer.scm (installer-steps): Use them to select kernel if
applicable.
* gnu/installer/newt/partition.scm (run-label-page): Default to "msdos" when
instaling the Hurd.
(run-fs-type-page): Add ext2 for the hurd.
(run-partitioning-page-partition): Remove `entire-encrypted' option when
installing the Hurd.
* gnu/installer/services.scm (system-services->configuration): Cater for the
Hurd with %base-services/hurd, and with %base-packages/hurd that must always
be set.
(%system-services): Change to procedure. When installing the the Hurd, do not
recommend `ntp-service-type' and USE `openssh-sans-x' package for
`openssh-service-type'.
(system-service-none): New variable.
* gnu/installer/newt/services.scm (run-network-management-page): Include it
when installing the Hurd.
(run-desktop-environments-cbt-page): When installing the Hurd, recommend to
not select any desktop enviroment. Update users.
* gnu/installer/parted.scm (efi-installation?): Return #f when installing for
the Hurd.
(create-ext2-file-system): New procedure.
(user-fs-type-name, user-fs-type->mount-type, partition-filesystem-user-type,
format-user-partitions): Support `ext2'.
(<user-partition> partition->user-partition): Use `ext2' when installing the
Hurd.
(auto-partition!): Likewise. No swap partition when installing the Hurd.
* gnu/installer/final.scm (install-system): Cater for cross installation of
the Hurd.
(bootloader-configuration): Use `grub-minimal-bootloader' when installing the
Hurd.
(user-partition-missing-modules): Cater for empty user-partitions.
(initrd-configuration, user-partitions->configuration): Cater for the Hurd.
* gnu/installer/steps.scm (format-configuration,
configuration->file): Cater for the Hurd.
* gnu/system/hurd.scm (%desktop-services/hurd): New variable.
* gnu/installer/tests.scm (choose-kernel): New procedure.
* gnu/tests/install.scm (gui-test-program): Use it.
Change-Id: Ifafb27b8a2f933944c77223a27ec151757237e36
2024-10-20 15:13:16 +02:00
|
|
|
,(if (target-hurd?)
|
|
|
|
'%base-packages/hurd
|
|
|
|
'%base-packages)))))
|
2022-08-02 23:27:52 +02:00
|
|
|
|
2022-11-20 22:56:23 +01:00
|
|
|
,@service-heading
|
2019-04-17 00:27:04 +02:00
|
|
|
(services (append (list ,@snippets
|
2019-04-08 10:36:37 +02:00
|
|
|
|
2019-04-08 10:42:10 +02:00
|
|
|
,@(if desktop?
|
|
|
|
;; XXX: Assume 'keyboard-layout' is in
|
|
|
|
;; scope.
|
2022-08-02 23:27:52 +02:00
|
|
|
`((set-xorg-configuration
|
2019-04-08 10:42:10 +02:00
|
|
|
(xorg-configuration
|
|
|
|
(keyboard-layout keyboard-layout))))
|
|
|
|
'()))
|
2022-08-02 23:27:52 +02:00
|
|
|
|
|
|
|
,(vertical-space 1)
|
|
|
|
,(comment (G_ "\
|
|
|
|
;; This is the default list of services we
|
|
|
|
;; are appending to.\n"))
|
2023-07-01 22:48:11 +02:00
|
|
|
,services))))))
|