From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id gHRULwpoG2fPRQAAe85BDQ:P1 (envelope-from ) for ; Fri, 25 Oct 2024 09:42:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id gHRULwpoG2fPRQAAe85BDQ (envelope-from ) for ; Fri, 25 Oct 2024 11:42:34 +0200 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=bVBzbq7H; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=IUmZ6KNG; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729849354; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: 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=Ppe8hOhH87LBYDPktBYAQOvm/YbN/xHgkOUNWh7OPSQ=; b=RhOLDfERgpWAOAG2HfxtiinUQkNGAA0XEKMZAeNLtxDJMALabkjttgFn9ZEFx2WnGUCoxa 4CIB0MIRToGKCiRwgR7ouX4b3of8C4rslbJBeqyPZPnxvb2Ux1d6VdHHrq0QpEbdFOj2xL m0Gb402LFMnCE3e9S3CcklbcrZK8j39ELQrmijz+qTI7lC2ciPwY7lEoEw6lKSdAtxoRRw wtYxKrxfRcBqN78AXYvS4Y8h0BNAHoHYD6l6p1qxQg9w0xq2uxo5XbvcKPmqaLAejDRESv jJtdU7RO+lc+t5aGSTKfYg9o0mWTFPYCJF0Vbvqhq3jduUb5f3jZqzEk2QrHfA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=bVBzbq7H; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=IUmZ6KNG; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729849354; a=rsa-sha256; cv=none; b=EgRdyAiAEXj8NGinGXiFMRudNY5zH8pYeoLVBwKYVBsXd5P6eeCr71N33nk+u3B7Zm+P5A h5XS7Y93oDBsqKF3aH68UPMrWS3TfySquswdT3euGYSynm0AadY1yL55dEnHLm/NfjLRVF itVx0vhvUYxpLGvmgi7G2zKUkBAdqse7Tj4Pygw47aFnEfN3QYH49cZdXi4ghi4yN7HCvw oVgrZq4DUo/9tZ71G+gM7UGOHNdtFB0uxIj39PuPGQMKGPu9L3P2JOHYWxi3Lx3e9cZfQP WSZzYsFILf135+j8QQOFh5QkAV0pGQlN7arTNqoJG/X3F0J8LbwDPzlXlnmOfQ== 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 9AE0F8E597 for ; Fri, 25 Oct 2024 11:42:34 +0200 (CEST) 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 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 1.32 X-Spam-Score: 1.32 X-Migadu-Queue-Id: 9AE0F8E597 X-TUID: w0/vP5w8J78K * 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 -- 2.46.0