From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8CzlFh2OGGRyBAEASxT56A (envelope-from ) for ; Mon, 20 Mar 2023 17:47:25 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sN3sFh2OGGTQygAAauVa8A (envelope-from ) for ; Mon, 20 Mar 2023 17:47:25 +0100 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 1CE0B1760B for ; Mon, 20 Mar 2023 17:47:24 +0100 (CET) Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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=1679330845; 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; bh=ps9nAhjMDWs2vGB2mM8tzWnHT6DJpI4SewiaTH776bw=; b=amE+Gv+yV7AemIEaEYe/QOiG7ifTVUg6s2iCfFOuwMxMchy4EV4tKieNN0U+oJTit2VZK3 PlVB6duRxzfbruPOHYKJpQQb0kltlK4GQom1bjMGKBt39qYye13TCOdzYtIIqWfM9nzlYS gGrN1QXYJ3Qfw/unhyYzTw6lk2Tfj/EXR7fJNgWVV9VAPBcpY42YbdZun6O+P70CkMkm4R nQJOIsJXx8EqyijRuNcFHM3LX9/QZ2ctWEeZznXFAhKXaWfmTzTnyjS8gB9a+nR4wroWSR BwOhpiwJ1RYG/iCjn1L5FuIFN5b3nE0SJ5/EyIYcUoGODhRt2ptaEPe/o1scyg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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=1679330845; a=rsa-sha256; cv=none; b=gHH5nAzv3ZKalO8vLWELU3WN0RUpLbUAEOfWlnBTq0jz2bPxZOa5KuDq/C9lb9ElfeG9kn eVWRi9F/TLX/48DGZSn/kp/ulwN2BOkf0twERBLaKRhYwI8r9DdoJ3swL13qtvJlitIYhP d56QfRgDsSYOwKRJxPmDJ6Ae52FDKTOpoN5c/l79JvwWuZnWP62O2bVxjDLmwtqRBiKykN nq0axDtNoHl/5wzpzSU4ocjcq363xV7Y3HAks0LJ6i9FWB9e22xUnWStWgAYd4017DHhyR sgI8KXTDfTl49XqtvqZ8HO29R0ArfMTW4W6t6yQbNGVaV8A02pHXn7n1Gn17jQ== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peIf1-0000vQ-Io; Mon, 20 Mar 2023 12:47:03 -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 1peIf0-0000vG-Qb for guix-patches@gnu.org; Mon, 20 Mar 2023 12:47:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1peIf0-0007HO-9x; Mon, 20 Mar 2023 12:47:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peIf0-0002N5-5C; Mon, 20 Mar 2023 12:47:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62298] [PATCH 0/8] Extensible define-configuration & mpd/mympd service fixes Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: liliana.prikler@gmail.com, maxim.cournoyer@gmail.com, ludo@gnu.org, guix-patches@gnu.org Resent-Date: Mon, 20 Mar 2023 16:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62298 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62298@debbugs.gnu.org Cc: Bruno Victal , liliana.prikler@gmail.com, maxim.cournoyer@gmail.com, ludo@gnu.org X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: liliana.prikler@gmail.com, maxim.cournoyer@gmail.com, ludo@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16793307789062 (code B ref -1); Mon, 20 Mar 2023 16:47:01 +0000 Received: (at submit) by debbugs.gnu.org; 20 Mar 2023 16:46:18 +0000 Received: from localhost ([127.0.0.1]:55594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peIeI-0002M6-20 for submit@debbugs.gnu.org; Mon, 20 Mar 2023 12:46:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:51044) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peIeG-0002Lw-LL for submit@debbugs.gnu.org; Mon, 20 Mar 2023 12:46:16 -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 1peIeG-0000Zq-DJ for guix-patches@gnu.org; Mon, 20 Mar 2023 12:46:16 -0400 Received: from smtpmciv3.myservices.hosting ([185.26.107.239]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1peIe9-0006xf-KT for guix-patches@gnu.org; Mon, 20 Mar 2023 12:46:16 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.173]) by smtpmciv3.myservices.hosting (Postfix) with ESMTP id BA0CB20407 for ; Mon, 20 Mar 2023 17:45:58 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 682B280098; Mon, 20 Mar 2023 17:45:58 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-2.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 3PYLzLgXaX8n; Mon, 20 Mar 2023 17:45:56 +0100 (CET) Received: from guix-nuc.home.arpa (bl9-119-177.dsl.telepac.pt [85.242.119.177]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 37C8280079; Mon, 20 Mar 2023 17:45:56 +0100 (CET) From: Bruno Victal Date: Mon, 20 Mar 2023 16:45:47 +0000 Message-Id: X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.26.107.239; envelope-from=mirai@makinata.eu; helo=smtpmciv3.myservices.hosting X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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: X-Migadu-Queue-Id: 1CE0B1760B X-Spam-Score: -1.76 X-Migadu-Spam-Score: -1.76 X-Migadu-Scanner: scn0.migadu.com 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-TUID: 8+qTOqj5AjGA Highlights: * Make define-configuration extensible. define-configuration can now have extra fields where custom-serializer was located. * New literals: sanitizer, serializer. Support user-specified sanitizers. * Fixes . * Switch to user-account/group for mympd-service-type as well. * Make mpd-service-type with pulseaudio usable out-of-the-box. * Fix a mympd-service-type when logging with syslog. Bruno Victal (8): services: configuration: Add user-defined sanitizer support. services: replace bare serializers with (serializer ...) services: audio: remove redundant list-of-string? predicate. services: mympd: Require 'syslog service when configured to log to syslog. services: mpd: Fix unintentional API breakage for mixer-type field. services: mpd: Set PulseAudio related variables as default value for environment-variables field. services: mpd: Use user-account (resp. user-group) for user (resp. group) fields. services: mympd: Use user-account (resp. user-group) for user (resp. group) fields. doc/guix.texi | 46 +++++-- gnu/home/services/shells.scm | 12 +- gnu/services/audio.scm | 224 ++++++++++++++++++++++--------- gnu/services/configuration.scm | 97 ++++++++++--- gnu/services/security.scm | 6 +- tests/services/configuration.scm | 156 ++++++++++++++++++++- 6 files changed, 431 insertions(+), 110 deletions(-) -- 2.39.1