[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/59: installer: Add static-networking template.
From: |
guix-commits |
Subject: |
17/59: installer: Add static-networking template. |
Date: |
Mon, 11 Nov 2024 09:56:05 -0500 (EST) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit cf3603762468b8342e1ed606efe35b1deb74dbff
Author: Janneke Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Sun Oct 20 17:19:01 2024 +0200
installer: Add static-networking template.
* gnu/installer/services.scm (%system-services): Add
static-networking-service-type.
Change-Id: Iec6336f8d1f49e8b801e978d5c9eeb4f83a6e748
---
gnu/installer/services.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/gnu/installer/services.scm b/gnu/installer/services.scm
index d5a382606c..8b117d9a20 100644
--- a/gnu/installer/services.scm
+++ b/gnu/installer/services.scm
@@ -149,6 +149,28 @@
(name (G_ "DHCP client (dynamic IP address assignment)"))
(type 'network-management)
(snippet '((service dhcp-client-service-type))))
+ (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"))))))))
;; Dealing with documents.
(system-service
- branch hurd-team created (now bf9b13cd1c), guix-commits, 2024/11/11
- 02/59: guix system: When installing the Hurd, create essential devices., guix-commits, 2024/11/11
- 05/59: system: hurd: Add swap-services to hurd-default-essential-services., guix-commits, 2024/11/11
- 09/59: maint: Add installer dependencies to the manifest., guix-commits, 2024/11/11
- 21/59: gnu: hurd: Update to v0.9.git20240714., guix-commits, 2024/11/11
- 17/59: installer: Add static-networking template.,
guix-commits <=
- 30/59: gnu: libstdc++: Support the 64bit Hurd., guix-commits, 2024/11/11
- 08/59: system: examples: Add devel-hurd.tmpl., guix-commits, 2024/11/11
- 26/59: gnu: elfutils: Fix build for 64bit Hurd., guix-commits, 2024/11/11
- 01/59: reconfigure: Use native bootloader package for running the installer., guix-commits, 2024/11/11
- 03/59: bootloader: grub: Remove hardcoded partition number for the Hurd., guix-commits, 2024/11/11
- 22/59: gnu: gcc: Add indirections current-gcc, current-gcc-toolchain., guix-commits, 2024/11/11
- 24/59: gnu: cross-libc: Support cross-building for the 64bit Hurd., guix-commits, 2024/11/11
- 27/59: gnu: grep: Fix build for the 64bit Hurd., guix-commits, 2024/11/11
- 28/59: gnu: patch: Fix build for the 64bit Hurd., guix-commits, 2024/11/11
- 32/59: DRAFT gnu: bootstrap: Add support for x86_64-gnu, aka the 64bit Hurd., guix-commits, 2024/11/11