From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id GFCKOk9EImesMQEAqHPOHw:P1 (envelope-from ) for ; Wed, 30 Oct 2024 14:36:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id GFCKOk9EImesMQEAqHPOHw (envelope-from ) for ; Wed, 30 Oct 2024 15:36:00 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=f3PUZpMG; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=BBN4u58K; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730298959; a=rsa-sha256; cv=none; b=lMIcAhnno7GaHUSkQ45Gm1fAIei14CFMudNFlU8RAew2mqGIAOHzl6dXHC7e/IRmaGItNS 7H0vgQ7iFUcyWLQ1PF85qWgmc3xMbaq9eskHmUNBoV4Xqff11CeJKt/90Y86p0RRjCmblA bHifgdxzjyzrmzaQ5e5FDbXzpSZgOBludU6dLzNhUbLLUwvfIhb6ZTN+VDFhXUUwl9l2uP Fmoj9OCfTkCFObmzZ3ZUaLXSkQNTEF5iZHdRpE615DauW1vh+OGIB+Orv2F+5ZPo2ibKId kvTUQ3LAFVaA+NRY1/3cjUz9diERRWg4SrViqJHk5WtOHhPOLmtrIWWqAGmEug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=f3PUZpMG; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=BBN4u58K; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730298959; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=u8iLXRhHTm7HmKJsJYUs8jZhSiK+cxiJnv3z/vi8xK0=; b=BQmEtzf2CPsMtNEPW8nUjEyLjvDeGbsvcXR5hWrkFQi678EMaAdT3PQv8/y+q2HYjfxlfD QdvSpEpZiRXL3zk9P/IMqbpj5+0BztZgUvIBdhiJylO1jC7S8CE1aIA2nwxlB+1karSXHz CGR+AgZzzAIsRyR5UXE4/J/mKralbvLHihSPFltKNUdRvlWzk87GbTZRsMrxHNBulsehzH RbcCMhyoaVgYtF/v7t3A+oFas8+/cQE/YrbF9iQJc90IRQUrp6+uVg/PdhM4DOgx7o7iaL UwOsKyxRgy6EHwgPiPGnDGa+dk1hd6aYcuHJ/4uspnJPZkuE869+WpjlZkjTfw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D37351E66 for ; Wed, 30 Oct 2024 15:35:59 +0100 (CET) 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: 1.34 X-Spam-Score: 1.34 X-Migadu-Queue-Id: D37351E66 X-Migadu-Scanner: mx12.migadu.com X-TUID: Az5N+NHgtxgV * 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 -- Janneke Nieuwenhuizen | GNU LilyPond https://LilyPond.org Freelance IT https://www.JoyOfSource.com | AvatarĀ® https://AvatarAcademy.com