From patchwork Wed May 22 11:06:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Tropin X-Patchwork-Id: 64821 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 0F4FA27BBEA; Wed, 22 May 2024 12:08:22 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 EC48C27BBE2 for ; Wed, 22 May 2024 12:08:20 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s9jp7-0000KE-L2; Wed, 22 May 2024 07:07: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 1s9jp6-0000K3-Ju for guix-patches@gnu.org; Wed, 22 May 2024 07:07:56 -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 1s9jp6-0005zO-Ba for guix-patches@gnu.org; Wed, 22 May 2024 07:07:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1s9jpC-0004AA-1d for guix-patches@gnu.org; Wed, 22 May 2024 07:08:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71111] [PATCH 1/1] services: home: Use pairs instead of lists. Resent-From: Andrew Tropin Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 22 May 2024 11:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71111 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 71111@debbugs.gnu.org Cc: Richard Sent , Ludovic =?utf-8?q?Court?= =?utf-8?q?=C3=A8s?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171637603615979 (code B ref -1); Wed, 22 May 2024 11:08:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 May 2024 11:07:16 +0000 Received: from localhost ([127.0.0.1]:55220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9joS-00049f-DM for submit@debbugs.gnu.org; Wed, 22 May 2024 07:07:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:33112) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1s9joN-00049Z-Ii for submit@debbugs.gnu.org; Wed, 22 May 2024 07:07:14 -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 1s9joG-00008j-Fj for guix-patches@gnu.org; Wed, 22 May 2024 07:07:05 -0400 Received: from out-186.mta1.migadu.com ([95.215.58.186]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1s9joD-0005pk-D5; Wed, 22 May 2024 07:07:04 -0400 X-Envelope-To: guix-patches@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=trop.in; s=key1; t=1716376018; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=eJUqc2R5p0f9iTQIdaIpzq69N9wZoZ9IMQfb6rBfhn0=; b=Ayqr3t5cc+1K6eCh5hGxodYR70s3IkGW24DSE5yzpVIa0fYrsZ/Q5Vi1fCv01UmmgtTeej fWO1xky6w6MAXMkgKe9rLiRXzf7xedo0YeEo/9psymiZr4EXQabiT8xcjHRxaT+qgfGDvj 4At2k1PNTcmfsQ3Wce5s6PG1fcWzJzY33zKWuiL0c2C4rv2qalvsabRTTk9sPmX5M/v7My 8ab+87zKoVKTL0BxnEEuh/+XjVzQi6ui5zIxQEjyuZHKGLbkzmmk27UJGT8sAOI500pl8M NKCy/z8PbHfarO8bMm2Lpk5nD40ESZvJbZowofx440VN5lcPKDsYHysGmhSg/A== X-Envelope-To: richard@freakingpenguin.com X-Envelope-To: ludo@gnu.org X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. In-Reply-To: References: Date: Wed, 22 May 2024 15:06:55 +0400 Message-ID: <878r02f6ls.fsf@trop.in> MIME-Version: 1.0 X-Migadu-Flow: FLOW_OUT Received-SPF: pass client-ip=95.215.58.186; envelope-from=andrew@trop.in; helo=out-186.mta1.migadu.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Reply-to: Andrew Tropin X-ACL-Warn: , Andrew Tropin via Guix-patches X-Patchwork-Original-From: Andrew Tropin via Guix-patches via From: Andrew Tropin 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/services/guix.scm: Use pairs instead of lists. * doc/guix.texi: Update accordingly. * gnu/tests/guix.scm: Update accordingly. Change-Id: I0b8d3fa5b214add89bdb84a11fa20d1b319435f0 --- doc/guix.texi | 4 ++-- gnu/services/guix.scm | 2 +- gnu/tests/guix.scm | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/guix.texi b/doc/guix.texi index 8073e3f6d4..8cc5edc805 100644 --- a/doc/guix.texi +++ b/doc/guix.texi @@ -39576,7 +39576,7 @@ Guix Services (operating-system (services (append (list (service guix-home-service-type - `(("alice" ,my-home)))) + `(("alice" . ,my-home)))) %base-services))) @end lisp @@ -39585,7 +39585,7 @@ Guix Services @lisp (simple-service 'my-extra-home home-service-type - `(("bob" ,my-extra-home)))) + `(("bob" . ,my-extra-home)))) @end lisp @end defvar diff --git a/gnu/services/guix.scm b/gnu/services/guix.scm index 96f5ecaac0..1f0e2a310d 100644 --- a/gnu/services/guix.scm +++ b/gnu/services/guix.scm @@ -696,7 +696,7 @@ (define guix-data-service-type (define (guix-home-shepherd-service config) (map (match-lambda - ((user he) + ((user . he) (shepherd-service (documentation "Activate Guix Home.") (requirement '(user-processes)) diff --git a/gnu/tests/guix.scm b/gnu/tests/guix.scm index 12ad1bf255..6071cb018e 100644 --- a/gnu/tests/guix.scm +++ b/gnu/tests/guix.scm @@ -271,7 +271,7 @@ (define %guix-home-service-he (define %guix-home-service-os (simple-operating-system (service guix-home-service-type - `(("alice" ,%guix-home-service-he))))) + `(("alice" . ,%guix-home-service-he))))) (define (run-guix-home-service-test) (define os