From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 8G7BL3jD9WbzdQEAqHPOHw:P1 (envelope-from ) for ; Thu, 26 Sep 2024 20:26:32 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 8G7BL3jD9WbzdQEAqHPOHw (envelope-from ) for ; Thu, 26 Sep 2024 22:26:32 +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=Zcf4ADmy; dkim=fail ("headers rsa verify failed") header.d=sarg.org.ru header.s=google header.b=AcQuJEQJ; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=sarg.org.ru (policy=none); 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=1727382392; 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: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=fJMDf8W2Y1EpmI5M185FGCNdDJ3u7YLdauwVYFYDlzU=; b=ZSQoEGyCuDsABiPiJ6RHKCA4iFsN3KUteFmOH/cOSBMN6jqg/740KU4PG0p6p8glhvc4N4 inIDOSYkHH0ex5kShSdY1WKcHbIxS27elHBlec13V2Ocq69hm7BIHxkfCWsvvfBHDP7XVy Oi0O0xVaFlbaTmg20ePmFBbWw489+oL99RuPUzJgYZV9V5mfj+c7LW7vQq1xKrgH309Tif lehy4+2/KoDTQtnlUylOl8iVTIgBKcgaHpD+onCZdB9j+BwbMDvrBAUc7pgM8qAWEHl8ju XV3SOTjnvBpcMoubQ5SEx9o73hDgwCRgV3XSLPtGhyfatlz3TvWgWFb3s5qpKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=Zcf4ADmy; dkim=fail ("headers rsa verify failed") header.d=sarg.org.ru header.s=google header.b=AcQuJEQJ; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=sarg.org.ru (policy=none); 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=1727382392; a=rsa-sha256; cv=none; b=TtrbNhlJ5q/tFVyPXRz7wlQ+TyF4fvpjsIwrJyCXNgqKfQ/vSirrGJBme5r4NrEcKnQb1Q SwN+BXf1svcrzPghxH1Goq2lq3LWql6gMEAfaw1+J+RxSZXfd8wupiHFrzoH4DCvGd2QI8 O621VBZiVsT5xxMj+YzWKdM8uID+v2oW6UcbUKl1JIR4he3JXLg0HqrOCzfDZGNtFf/bR2 OiC24/yNLyl9GAjeGTYPQEtdm+IU7abmjX/pvnrgpNEoupKEhzLwtA1Rit+MqEdL6KXv/p P6nFUtbVPUoWWcQGnsFGGTkq8kU/6g7gNLzVpb7NRr9WSBJRL4NnyiZG1jIIkg== 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 3999218A63 for ; Thu, 26 Sep 2024 22:26:31 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1stswq-00063v-4K; Thu, 26 Sep 2024 14:10:40 -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 1stswl-000634-7l for guix-patches@gnu.org; Thu, 26 Sep 2024 14:10:36 -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 1stswk-0003yM-To for guix-patches@gnu.org; Thu, 26 Sep 2024 14:10:34 -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:Date:From:To:In-Reply-To:References:Subject; bh=fJMDf8W2Y1EpmI5M185FGCNdDJ3u7YLdauwVYFYDlzU=; b=Zcf4ADmydyXNo1Ka7xNOZn1ig8dF/jfZjZfXXjlWukS+xeMmWfd/uai7Z82DFY1oGXFQB+7HCDyjfoPlIm8vULUh4W+zYwWedKQIBvxem8PVDCGyiGHzjFWAARvskgwpbVJTC9WmJvHnhOtid+2qi1OTkNAt8EhybXtkDBhhg/ftctQqrjTePjx187cmYlWr9tyGQRht09re0gw1mUQ/G4iRJXji0g/PkxZFUBt+8Yeo2Ocm0H0r4eDnfZCgEwSi7F1yRUb2+DBhx7szVIORLkHH3Ebf0K/lIvYmiGKO9LQY1ZwM7Bj6WWe6lDmfdbqxPAntg9syciIixsDJg/8avw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1stsxC-0002lm-AC for guix-patches@gnu.org; Thu, 26 Sep 2024 14:11:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73467] [PATCH] Wireguard: Add autostart? field. References: <87cyksjfhw.fsf@gmail.com> In-Reply-To: <87cyksjfhw.fsf@gmail.com> Resent-From: Sergey Trofimov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 26 Sep 2024 18:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73467 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Apoorv Singh Cc: 73467@debbugs.gnu.org Received: via spool by 73467-submit@debbugs.gnu.org id=B73467.172737421810014 (code B ref 73467); Thu, 26 Sep 2024 18:11:02 +0000 Received: (at 73467) by debbugs.gnu.org; 26 Sep 2024 18:10:18 +0000 Received: from localhost ([127.0.0.1]:47613 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stswT-0002bN-4S for submit@debbugs.gnu.org; Thu, 26 Sep 2024 14:10:18 -0400 Received: from mail-ej1-f41.google.com ([209.85.218.41]:48243) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1stsZx-0000yo-Ip for 73467@debbugs.gnu.org; Thu, 26 Sep 2024 13:47:03 -0400 Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a8a7b1c2f2bso186833366b.0 for <73467@debbugs.gnu.org>; Thu, 26 Sep 2024 10:46:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sarg.org.ru; s=google; t=1727372728; x=1727977528; darn=debbugs.gnu.org; h=mime-version:user-agent:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=fJMDf8W2Y1EpmI5M185FGCNdDJ3u7YLdauwVYFYDlzU=; b=AcQuJEQJVyCSHpvyYsy/NI6Cs25woPvZau5WZfZk7KO3sg0HOTVbgoJPYMdjCGHrnV yhxLZuRvTR3OIYxd4tpBwaejhexcB0XPRJ5qpQljm9gIBtjBwUAM+WyvWzYrnpz7T/gR DLX1nv1e6hAqMgkT5D8mhAk40G/HtoNg6riraiQ+SZ7sh+GPoMzZd9iRJiGl2nOr5KTJ e55fLJqI0nyvbVFNwXOdRkEsWXQMMAYZVGXVJzT47yUaFsW2Fm++gwGjq+tv0ugCbc4q U4b46wYCy9TaUZvLtnqhNyXlTO0tF5cJVEHPQG+jz3TYUxBPY91nZyKCArrywh18foyp g54Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727372728; x=1727977528; h=mime-version:user-agent:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fJMDf8W2Y1EpmI5M185FGCNdDJ3u7YLdauwVYFYDlzU=; b=IDPlkCC7pDUVVWdsGBfJaCa6ooYvsU/p1p6zNYgUZAmrYCjKKthOVexDS5TtRHvgFa GJvFEAeKZ2YewErxdu/Qh8bsp2XGsY/qHM6i4MC/tNzoFrPYYej/QQQEOJz8TOwoVJ/R J917XDbXHexQEMdA1mq8W3ZLdecIH+FYUq9Vm5+tSthIkqctkyvc1kcvzI8GsANUBg66 4kXlPJMbenreRkE3YmEttIgLvExd/v2w2rDdbXlKbgEa2yZRQ7P7OaWTH8PpsH453wli OgbQwJMue6D1TuY45gLjRn4xBIwXQTGxKvBzuQ6Tvb/ujaPJ/jhaETUXy/vBuFbIqvPn c4lQ== X-Gm-Message-State: AOJu0Yy6Tbj9CAV9pS5ghhbWNnpTf0O9ylg6yydu8okA0F0nAvgrbs6P 8jvHtVWH5wnyWAIvyrBa6pY8PuA04ryTHqpBtxvJ7vY3Ebk07xYYL/j536mjcKLVT7cRhuNzjKI 7JME= X-Google-Smtp-Source: AGHT+IHS894AGf0y3N1Ib9GbnaXm/NwpJXgBYOiYT0WuetRfY3RWc4iAuogyuRpDyVHIfjdq1c+9UA== X-Received: by 2002:a17:907:6ea0:b0:a8a:85af:7ae8 with SMTP id a640c23a62f3a-a93c48e95e2mr31245166b.11.1727372727910; Thu, 26 Sep 2024 10:45:27 -0700 (PDT) Received: from thinkpad ([2a02:2454:a0a9:e300:a64e:31ff:fe38:fd6c]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a93c2947af3sm21781466b.134.2024.09.26.10.45.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Sep 2024 10:45:27 -0700 (PDT) From: Sergey Trofimov Date: Thu, 26 Sep 2024 19:45:26 +0200 Message-ID: <87ikui1f7t.fsf@sarg.org.ru> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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-Queue-Id: 3999218A63 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -5.57 X-Spam-Score: -5.57 X-TUID: JSIfX3QcnKEp Apoorv Singh writes: > The following patch adds a record field autostart? which can be used by the user > to configure weather the wireguard service should start automatically. I generally agree that there should be a way to disable autostart and I've solved it in a more generic way: --8<---------------cut here---------------start------------->8--- (define (no-autostart input-service) "Augment shepherd extension of INPUT-SERVICE to disable auto-start." (define (transform-extension ex) (match ex (($ (@@ (gnu services) ) (and ($ (@@ (gnu services) ) 'shepherd-root _) kind) compute) (service-extension kind (lambda (config) (let ((orig (car (compute config)))) (list (shepherd-service (inherit orig) (auto-start? #f))))))) (_ ex))) (match input-service (($ (@@ (gnu services) ) (and ($ (@@ (gnu services) ) _ extensions _) kind) value) (service (service-type (inherit kind) (extensions (map transform-extension extensions))) value)))) --8<---------------cut here---------------end--------------->8--- Anyway, you need to document the new configuration parameter in the manual.