[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
17/48: installer: Add static-networking template.
From: |
guix-commits |
Subject: |
17/48: installer: Add static-networking template. |
Date: |
Sat, 9 Nov 2024 08:12:35 -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
- 18/48: installer: Support dry-run from Guile via store., (continued)
- 18/48: installer: Support dry-run from Guile via store., guix-commits, 2024/11/09
- 30/48: gnu: gcc-13, gcc-14: Support being used as parent for gcc-static., guix-commits, 2024/11/09
- 21/48: gnu: gcc: Add indirections current-gcc, current-gcc-toolchain., guix-commits, 2024/11/09
- 14/48: installer: Use `%' for parameter %run-command-in-installer., guix-commits, 2024/11/09
- 26/48: gnu: grep: Fix build for the 64bit Hurd., guix-commits, 2024/11/09
- 24/48: gnu: bash-minimal: Fix build for 64bit Hurd., guix-commits, 2024/11/09
- 38/48: gnu: libpciaccess: Support the 64bit Hurd., guix-commits, 2024/11/09
- 25/48: gnu: elfutils: Fix build for 64bit Hurd., guix-commits, 2024/11/09
- 20/48: gnu: hurd: Update to v0.9.git20240714., guix-commits, 2024/11/09
- 32/48: system: image: Add hurd64 image types., guix-commits, 2024/11/09
- 17/48: installer: Add static-networking template.,
guix-commits <=
- 13/48: installer: Fix file-name typos., guix-commits, 2024/11/09
- 22/48: gnu: Add basic support for x86_64-pc-gnu target, aka 64bit Hurd., guix-commits, 2024/11/09
- 40/48: gnu: netdde: Update to c0ef248dc7c5ccc1273e2a796f3ece30c5b645df., guix-commits, 2024/11/09
- 43/48: gnu: hurd: Build fixes for the 64bit Hurd., guix-commits, 2024/11/09
- 35/48: gnu: perl: Support cross-building for the 64bit Hurd., guix-commits, 2024/11/09
- 36/48: gnu: openssl-3.0: Support the 64bit Hurd., guix-commits, 2024/11/09
- 39/48: gnu: netdde: Support the 64bit Hurd., guix-commits, 2024/11/09
- 19/48: gnu: gnumach: Update to v1.8+git20240406., guix-commits, 2024/11/09
- 45/48: gnu: git-minimal: Support the 64bit Hurd., guix-commits, 2024/11/09
- 48/48: gnu: guile-fibers: Fix build for the 64bit Hurd., guix-commits, 2024/11/09