From patchwork Fri Oct 25 09:40:08 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 69451 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 0E9E727BBEA; Fri, 25 Oct 2024 10:42:34 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CCED327BBE2 for ; Fri, 25 Oct 2024 10:42:33 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t4Gp9-0002V9-QU; Fri, 25 Oct 2024 05:41:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t4Gp7-0002T6-PW for guix-patches@gnu.org; Fri, 25 Oct 2024 05:41:37 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t4Gp7-0003uA-FM for guix-patches@gnu.org; Fri, 25 Oct 2024 05:41:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=Ppe8hOhH87LBYDPktBYAQOvm/YbN/xHgkOUNWh7OPSQ=; b=bVBzbq7Hbm3TfMkjTlNfjSAHhMOIlDUGmb+nt+cFUBkBWCtAuai48Ocw2F71su2kVamCi1XzL8JtEsQRaacRzOalCRbfqSZEaAo6sr5OhhS5cB3znnZEXI1MzZyiHsn50d2W/G/r4Vp8XiiRnRGytPh5YPYG106/DUYYpcJeJSecjOswrHs9U2kwDoj59LQfbH89ZTBVVX9wilZOPefptP7BQBHqD1FVUYmf3xTkvltjY+UtLvqfGrXAw5O+qXs3hvV9YQt0ev0qwCYN5q2bD9Wz9NqJFKX+19TOJCGxwWdlc/1NX5IJXdIGbqyNM9vLT9C/nJlP1CQD3yRIMYdY+g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t4Gpd-00027O-6g for guix-patches@gnu.org; Fri, 25 Oct 2024 05:42:09 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73927] [PATCH v3 16/17] installer: Add static-networking template. Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Oct 2024 09:42:09 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73927 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73927@debbugs.gnu.org Received: via spool by 73927-submit@debbugs.gnu.org id=B73927.17298492917962 (code B ref 73927); Fri, 25 Oct 2024 09:42:09 +0000 Received: (at 73927) by debbugs.gnu.org; 25 Oct 2024 09:41:31 +0000 Received: from localhost ([127.0.0.1]:37345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4Gp1-00024G-9c for submit@debbugs.gnu.org; Fri, 25 Oct 2024 05:41:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36462) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4Got-000229-Ig for 73927@debbugs.gnu.org; Fri, 25 Oct 2024 05:41:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t4GoI-0003pT-FO; Fri, 25 Oct 2024 05:40:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=Ppe8hOhH87LBYDPktBYAQOvm/YbN/xHgkOUNWh7OPSQ=; b=IUmZ6KNGyXk8VAnbLy5U NCNjYf33GxK4XHCmko/fsvFWzsKZ0y9V4tH8tA3SKl6EoGlmK9zJJxeQCGIVwFh0nUDtWKqHkNWgR Yv170rK1eaTaJjAdR+SJZO05jQDoG+SptYWpuQSQ9BTkRKS8YefuNSqeWqviPKQpnQmSHXYZCx2vP r/I3OBgbwwbwWsqgI979Xd8ZjZuK14Nmt4uzByvSgW0XMYaxVuP0sGxpk5HUJZiAqrXbPlk5VVDM3 5Zsz+iocLnSBwokrGYiqdx1SS/xTaGkTE9LuXDKYtMlQ4f4WWeHjjBHTkAGqYrdO4y1/bidJhlkBv lZR9ic0ETtqqew==; From: Janneke Nieuwenhuizen Date: Fri, 25 Oct 2024 11:40:08 +0200 Message-ID: <20241025094011.8540-17-janneke@gnu.org> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241025094011.8540-1-janneke@gnu.org> References: <20241025094011.8540-1-janneke@gnu.org> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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 @@ (define (%system-services) (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