diff options
author | Janneke Nieuwenhuizen <janneke@gnu.org> | 2024-10-20 17:19:01 +0200 |
---|---|---|
committer | Jan (janneke) Nieuwenhuizen <janneke@gnu.org> | 2024-11-11 07:28:35 +0100 |
commit | 711855cb00f436475ecd48423fedfbf74567c575 (patch) | |
tree | 16c1f0c4f59abf63bf269c2cda60f9cfe5e17689 | |
parent | 687a2ccabc6f57fcd25110f587df90ed0cab2f05 (diff) | |
download | guix-711855cb00f436475ecd48423fedfbf74567c575.tar.gz |
installer: Add static-networking template.
* gnu/installer/services.scm (%system-services): Add static-networking-service-type. Change-Id: Iec6336f8d1f49e8b801e978d5c9eeb4f83a6e748
-rw-r--r-- | gnu/installer/services.scm | 22 |
1 files changed, 22 insertions, 0 deletions
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 |