[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
15/26: installer: Add static-networking template.
From: |
guix-commits |
Subject: |
15/26: installer: Add static-networking template. |
Date: |
Tue, 22 Oct 2024 04:07:47 -0400 (EDT) |
janneke pushed a commit to branch hurd-team
in repository guix.
commit d5854ff57045830ef07a93861017c44e36266d6c
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
- 04/26: system: hurd: Add swap-services to hurd-default-essential-services., (continued)
- 04/26: system: hurd: Add swap-services to hurd-default-essential-services., guix-commits, 2024/10/22
- 16/26: DRAFT installer: Support dry-run from Guile via store., guix-commits, 2024/10/22
- 14/26: installer: Add "Kernel" page to select the Hurd., guix-commits, 2024/10/22
- 17/26: Revert "DRAFT installer: Support dry-run from Guile via store.", guix-commits, 2024/10/22
- 18/26: DRAFT installer: Support dry run from Guile., guix-commits, 2024/10/22
- 26/26: REMOVEME system: install: Use linux-libre-5.15., guix-commits, 2024/10/22
- 10/26: installer: Use "partitioning-page" consistently., guix-commits, 2024/10/22
- 06/26: hurd-boot: Support second boot., guix-commits, 2024/10/22
- 12/26: installer: Use `%' for parameter %run-command-in-installer., guix-commits, 2024/10/22
- 11/26: installer: Fix file-name typos., guix-commits, 2024/10/22
- 15/26: installer: Add static-networking template.,
guix-commits <=
- 20/26: Revert "DRAFT installer: Support dry-run via Guile: add indirection.", guix-commits, 2024/10/22
- 21/26: Revert "DRAFT installer: Support dry run from Guile.", guix-commits, 2024/10/22
- 22/26: DRAFT installer: Support dry-run from Guile via store., guix-commits, 2024/10/22
- 24/26: DRAFT daemon: Support chroot builds on GNU/Hurd., guix-commits, 2024/10/22
- 25/26: Revert "DRAFT daemon: Support chroot builds on GNU/Hurd.", guix-commits, 2024/10/22
- 19/26: DRAFT installer: Support dry-run via Guile: add indirection., guix-commits, 2024/10/22
- 23/26: DRAFT system: examples: Add devel-hurd.tmpl., guix-commits, 2024/10/22