From patchwork Wed Oct 30 14:30:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janneke Nieuwenhuizen X-Patchwork-Id: 69650 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 258CF27BBE2; Wed, 30 Oct 2024 14:36:00 +0000 (GMT) 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 CC84327BBE2 for ; Wed, 30 Oct 2024 14:35:59 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t69ng-0003Rn-2A; Wed, 30 Oct 2024 10:35:57 -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 1t69n1-0002yh-PZ for guix-patches@gnu.org; Wed, 30 Oct 2024 10:35:16 -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 1t69mr-00042O-3X; Wed, 30 Oct 2024 10:35:10 -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=u8iLXRhHTm7HmKJsJYUs8jZhSiK+cxiJnv3z/vi8xK0=; b=f3PUZpMGB/b+pW4dprAAsggvkZEyVWCcgHcOEjMyDrGBntSvXJJcTgCG7P4nroSjEqd1V2O9hwHDNVjxaxBMGwxq8SppVjSDp0bbKKofWvTuA7G94cLqeqj0BF7sPFvrejfNaYYpBxXQdkpZ7ng0sKUH7mMMchDVDR0A1cJ9lirC6l4kQUB172pdEMM8QkXZuPnL3gDeDMvyoZko4+r/GvkSNV6r9+2hTFEmmJrM5w6nYfBTXHT+h/g8DsC6nITcG9db4kpmD53Ft1IT5IbcTqic3OBSo+i7TjNcLlQi7ooLDvzC/eqEdtTWkiBVbL5nJUt3uD5xishzIAH8SRT20A==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t69mq-00041Q-5H; Wed, 30 Oct 2024 10:35:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73927] [PATCH v4 17/18] installer: Add static-networking template. Resent-From: Janneke Nieuwenhuizen Original-Sender: "Debbugs-submit" Resent-CC: dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, guix-patches@gnu.org Resent-Date: Wed, 30 Oct 2024 14:35:04 +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 Cc: Josselin Poiret , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe X-Debbugs-Original-Xcc: Josselin Poiret , Ludovic =?utf-8?q?Court=C3=A8s?= , Mathieu Othacehe Received: via spool by 73927-submit@debbugs.gnu.org id=B73927.173029885815388 (code B ref 73927); Wed, 30 Oct 2024 14:35:04 +0000 Received: (at 73927) by debbugs.gnu.org; 30 Oct 2024 14:34:18 +0000 Received: from localhost ([127.0.0.1]:35386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t69m6-000401-38 for submit@debbugs.gnu.org; Wed, 30 Oct 2024 10:34:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t69lm-0003wc-4m for 73927@debbugs.gnu.org; Wed, 30 Oct 2024 10:33:58 -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 1t69jb-0003Oi-42; Wed, 30 Oct 2024 10:31:43 -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=u8iLXRhHTm7HmKJsJYUs8jZhSiK+cxiJnv3z/vi8xK0=; b=BBN4u58KjsA49r5O6thp AWUKLX3Yfyd55B2dkIeupvdrJn5Vz+y2ftqtK3Hpgq/BmiUFAMWsiQIfJpoMzVF/hl4RP8KbBeopj 7ZJRcE4V275SHsNdnqPHXeovYVWNnHKgdsk/IHTEpiCJR0fY83uOKzvmKCgrxHsMPnEEsE1U6Y4fJ nCk7+XjNFRT9vc8pTyHFQes75MSSKi+ZpFNRq1fbUPiBSXEHEAf7y6VGoQjLZvVf9eJb59jQW64YR tAzPybgKptybbPQnFlM551j4MK5sbpLiesbBvyLhNP7Q9VFDWKAeoWkGchKFj6+qQXCAvjvn88U3z 7dZUVtPH0YbmAw==; From: Janneke Nieuwenhuizen Date: Wed, 30 Oct 2024 15:30:46 +0100 Message-ID: X-Mailer: git-send-email 2.46.0 In-Reply-To: References: 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