From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id yIV+Ad+Il2Jm3gAAbAwnHQ (envelope-from ) for ; Wed, 01 Jun 2022 17:42:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id +D1fAd+Il2K1GQEAauVa8A (envelope-from ) for ; Wed, 01 Jun 2022 17:42:23 +0200 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 64C6D9703 for ; Wed, 1 Jun 2022 17:42:22 +0200 (CEST) Received: from localhost ([::1]:55010 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nwQUH-00026y-6F for larch@yhetil.org; Wed, 01 Jun 2022 11:42:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48062) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwQTy-00026U-L1 for guix-patches@gnu.org; Wed, 01 Jun 2022 11:42:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nwQTy-0007wy-C4 for guix-patches@gnu.org; Wed, 01 Jun 2022 11:42:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nwQTy-0001RY-AG for guix-patches@gnu.org; Wed, 01 Jun 2022 11:42:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55752] [PATCH 0/5] Add 'guix system edit' and 'guix home edit' Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 01 Jun 2022 15:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55752 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 55752@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16540981195524 (code B ref -1); Wed, 01 Jun 2022 15:42:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Jun 2022 15:41:59 +0000 Received: from localhost ([127.0.0.1]:51620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nwQTo-0001QS-Un for submit@debbugs.gnu.org; Wed, 01 Jun 2022 11:41:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:34270) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nwQTm-0001QI-Fi for submit@debbugs.gnu.org; Wed, 01 Jun 2022 11:41:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47990) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwQTm-00024i-95 for guix-patches@gnu.org; Wed, 01 Jun 2022 11:41:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwQTm-0007up-03; Wed, 01 Jun 2022 11:41:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=iX/5SyJnF8X7BigEUSCPA67z6KGYC2d8EPGLt+KJQZY=; b=fLE+pWibOls7/0 n+tXjc6UV5f461LWPIlW10cYEox5eJiLd0kPi47/81u6RGdc97zwthjqOHsyc8Ctziq2SA8SUhFXJ 0SHSva/63rW2DvLpjqhSPJJfyGFtQLWu7HOyghY71Hqkj1ppOTC8Y6EfrNqiFmUo1jvI93TQiBWzd MyEyBg42hPMBPXybtCdBOyhqB5Tu71IKqbhKvi5XQgjHnSRmnFjPnJc8cQrnOC2yMMI6t6A0rjDV3 /Q5VIOCKYWUDyFl1TdKKnaf0tgS37QJ3C2+VsnpmqqiBlu/FkidzyvHgjsXwPPlX0JoNa9YsO8E8D QgMR4BAcypV0xESFbnPQ==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:50159 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nwQTl-0006TP-Jj; Wed, 01 Jun 2022 11:41:49 -0400 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Wed, 1 Jun 2022 17:41:40 +0200 Message-Id: <20220601154140.16178-1-ludo@gnu.org> X-Mailer: git-send-email 2.36.1 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654098142; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=iX/5SyJnF8X7BigEUSCPA67z6KGYC2d8EPGLt+KJQZY=; b=jRs7Wzg2Eu7fKeNYBd8X0fzvED5ITdgeYvQwLPZb0d6esBt+A/9tj4jNicg/pRXmR8D0Ya 3hrVlunFJx1pb2Kc2AXFPb7CxSTPML5twLjpF0L7n2I68vo8z2OFHVdWPls4VLVIbixDeb 9VGWH6jKUfsY1yCSctPHOKy60tBlRZt+alVRzzqcKtT647TP0w58nQ5kuh3IoqPscZttdi DACjKLOi98k5+sd+kk/yDMOycLjT0FoB4GbnJUqCX5Xtozdx4pz+uFFT9Tm7J2rEZZkAcE d+ANQ/jhagyvYq/B9AAkRsS3mNwcR9hDKgXnYMqY7dS4bjFbKbAqXVYJ7+0EnQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654098142; a=rsa-sha256; cv=none; b=SkJK1SxArP0RfX9Ryk/4xQDj8x/yTTV/utN+uGAhrNMShiCT6rdbIa5DgL3Q+1C5mrgcwa TpeLD8W7c8sdKdWgZLmwVKeUhSwuIhW/ELHF7QpqiPawETH1HH4S9qqUSm4ztB0Wsekr2b yoLTpvKc6OvSVpdhvCVwgbH/+WuuePw/tLwyL3rtzXgvGYy/dUt1d8HmyJq80ZKrHozBqo 7FJivsJWthSDObv6Y6IOUmxQ4OBxlqL/02VBC5UKNL1h3sVpVL9WZ1q+vanSWQ0CsVEUOU GLN/WI+pTNB+hIQi81Xj+RQS0TXrWwfO8MmzFm2j8xIDn6xRJiLRCco74HOLeQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=fLE+pWib; 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" X-Migadu-Spam-Score: -3.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=fLE+pWib; 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" X-Migadu-Queue-Id: 64C6D9703 X-Spam-Score: -3.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: c1vxBS4UhvHT Hello Guix! This is the long-overdue addition of ‘guix system edit’ and ‘guix home edit’ to edit service type definitions. Thoughts? Ludo’. Ludovic Courtès (5): edit: Extract 'spawn-editor' procedure. guix system: Add 'edit' sub-command. home: services: Add 'lookup-home-service-types' procedure. guix home: Add 'edit' sub-command. DRAFT news: Add entry for 'guix system edit' and 'guix home edit'. Makefile.am | 5 ++- doc/guix.texi | 26 ++++++++++++++ etc/news.scm | 28 +++++++++++++++ gnu/home/services.scm | 12 +++++++ guix/scripts/edit.scm | 30 +++++++++------- guix/scripts/home.scm | 7 +++- guix/scripts/home/edit.scm | 66 ++++++++++++++++++++++++++++++++++++ guix/scripts/system.scm | 7 +++- guix/scripts/system/edit.scm | 64 ++++++++++++++++++++++++++++++++++ po/guix/POTFILES.in | 2 ++ tests/home-services.scm | 46 +++++++++++++++++++++++++ 11 files changed, 278 insertions(+), 15 deletions(-) create mode 100644 guix/scripts/home/edit.scm create mode 100644 guix/scripts/system/edit.scm create mode 100644 tests/home-services.scm base-commit: fed51b26141548a5bae349a5e1d8d6f681320f4f -- 2.36.1