From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id ADVGIAnYS2TmFgAASxT56A (envelope-from ) for ; Fri, 28 Apr 2023 16:28:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id oEYiHwnYS2Q+fAAAG6o9tA (envelope-from ) for ; Fri, 28 Apr 2023 16:28:25 +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 39113C7D8 for ; Fri, 28 Apr 2023 16:28:25 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1psP53-0007bU-C7; Fri, 28 Apr 2023 10:28: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 1psP4t-0007WE-6D for bug-guix@gnu.org; Fri, 28 Apr 2023 10:28:03 -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 1psP4s-0005wY-0A for bug-guix@gnu.org; Fri, 28 Apr 2023 10:28:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1psP4r-00057v-OR for bug-guix@gnu.org; Fri, 28 Apr 2023 10:28:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63082: [PATCH 00/17] Improve out-of-the-box experience with mpd-service-type References: <874jp3nyd3.fsf@gmail.com> In-Reply-To: <874jp3nyd3.fsf@gmail.com> Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Fri, 28 Apr 2023 14:28:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63082 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 63082@debbugs.gnu.org Cc: Bruno Victal , Liliana Marie Prikler , Maxim Cournoyer Received: via spool by 63082-submit@debbugs.gnu.org id=B63082.168269204419471 (code B ref 63082); Fri, 28 Apr 2023 14:28:01 +0000 Received: (at 63082) by debbugs.gnu.org; 28 Apr 2023 14:27:24 +0000 Received: from localhost ([127.0.0.1]:34115 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psP4F-00053y-RV for submit@debbugs.gnu.org; Fri, 28 Apr 2023 10:27:24 -0400 Received: from mail-qv1-f53.google.com ([209.85.219.53]:60677) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1psP4E-00053a-9W for 63082@debbugs.gnu.org; Fri, 28 Apr 2023 10:27:22 -0400 Received: by mail-qv1-f53.google.com with SMTP id 6a1803df08f44-5f428830e54so322526d6.1 for <63082@debbugs.gnu.org>; Fri, 28 Apr 2023 07:27:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1682692036; x=1685284036; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=G0egGu2NgiARRIcMx6IXgwOAqI//63Zcgf8JojRvbVk=; b=ancAQsEfQsGL5k7jBqWHJttJuppPi3+s/ZQDR/OaZ7fvL5q0i+ErZvkfyf4MmfGjq2 LLXJ70Mx4DlUpoMvrNXG0RG3bPvu9YgLkO74awMiV8B9SLzejPtEAYr7PdFAb2nvqU6X jkZiBkmJ9KLVIHTtGOyhbAXrl3meGpEpGSmpsYuRdwBdSa064agekmfmRwbaxeH+9Oy+ /6Ov7JvmVYrXkULUEdccsCRCOT61dk1mkXwMIo+U9Yf2yM+EJwISb4Fn6HHEbBJNoM7/ QObee2b3uV41DqZU8jXB3ajDoMGDzP9jBxQIoxPfpxbrBThaybgylf+6hbb4vMRW14Bs oZMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682692036; x=1685284036; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=G0egGu2NgiARRIcMx6IXgwOAqI//63Zcgf8JojRvbVk=; b=XmLmTI8c3o7DkYQxb8rVk0ynOIa/ryINa9C8UXuSpF+W4MF0UfPhIP9nuDq6U/+Wye Qb0oNkbJBukrh+uJO84I2Fwxz89vYNuuyDNCkTnQ8KLhSORsCZUux6p6mNaNUlG2DSOL LujhBGI3gUzqBEEMy7KSb/WBHExc8u9Z+R+6V7oZ71GRNkkztkVBw89F0C89l8b3dl15 h7PnXxwYu1dixVaqgJBB1YNft9NHB4wAk02q6b/L9m7G4fZV1jl8qsxP0hv9ZdXTSsks BICJr3xJB2UniYsDkNPBSkpguE/gOvWN02N/PLZ4RVN2wsulVtxK3MCpYcUAwvutS+/D Wjtg== X-Gm-Message-State: AC+VfDzupVf6eGOqz6zAIPKUzcKRNrZxpTTs/EWicnrDGS4TquFE0tlt mHR1VXaAk9ZFosEhopHgAJ+JTd5Adhk= X-Google-Smtp-Source: ACHHUZ4n8ReQuHQQZm1KPffi6RaE8XGu6CvNcZ1c/1PVAFAohg8wh5nTWqf6R6WxEH3JjFgzgB46Og== X-Received: by 2002:a05:6214:1c48:b0:5f4:5af6:1304 with SMTP id if8-20020a0562141c4800b005f45af61304mr8657981qvb.16.1682692036533; Fri, 28 Apr 2023 07:27:16 -0700 (PDT) Received: from localhost.localdomain ([2607:fad8:4:3::1000]) by smtp.gmail.com with ESMTPSA id d8-20020a0cfe88000000b005ff569bca72sm6176940qvs.93.2023.04.28.07.27.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Apr 2023 07:27:16 -0700 (PDT) From: Maxim Cournoyer Date: Fri, 28 Apr 2023 10:26:53 -0400 Message-Id: X-Mailer: git-send-email 2.39.2 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682692105; a=rsa-sha256; cv=none; b=nxMTORkvU89+wM/Uo5VR+/quJgtJR67HCHCO0RFxb5uzrJ8DKwfUVuLAje/hY6+beGmmkV A8mLUPq3UhNt8H7C3bMecy+WFWS11Z5MD1EmlXwicxiz0EZ15wVlDacIGqW4vkGW4IK8+L lAqW2hPdZBWJtcM+mn/p6+JOq2dkEUs4QjZ47dA7YSkOk/8NcaDBI99kLkGzAwKJeaUpG3 X93zkC+nW9+wO//f9Go/+2wg4w/zRx+9LhZ2mVCskdb6Eb4HVFpHRglWso/QK1EM7UJa0k nINNxJc/mkAxTttKY4RDqUvuTlfI2YJIa6fhqJ6ZGtXb6jIIHCLjmYroiHmRgw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=ancAQsEf; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682692105; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=G0egGu2NgiARRIcMx6IXgwOAqI//63Zcgf8JojRvbVk=; b=VFINTMtkHJDhLmwJfaaH3lSplQ84BCyBxKpemBBN6SXlmd0yaZYTL/gSNlFvVLMnC72Ees qh3SYnJ0ImAiW9j7Ba0Zv3waJCC1DfNh3N2ahFZzb/O5EsgTSIlglq0CC+uvaye53hQFwX LbhWwiJ1g6Xw4zHTB8PQTM34XWFp6bcKeJ7XQao1MKyoRNxhXX5Jl0f04PMFJF8DdYSjE7 /SMK7jWJ8h/M8ckZ22DI2aCh7mzL2xi9QBtzHhwuorJtSsqW0Cyq/Nfga5sEyMwfMoWcEH sSFmIinxidE+E388ut87x7mPrXdZAQUc7hV3KiFEz9dQOorEeNDY3kwTBHWr4Q== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=ancAQsEf; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.80 X-Spam-Score: 7.80 X-Migadu-Queue-Id: 39113C7D8 X-TUID: /CkOxPdW1Sm4 Hi, I've recently had enough issues trying to setup a very basic, minimal MTP server that I've found an itch to improve a few things, leading to the patches below. It obsoletes a few things to make the configuration less error prone or easier to reason with, and focus on making things "just work" out of the box, using something as minimal as: (service mpd-service-type (mpd-configuration (music-directory "/srv/music"))) Previously this would fail due to requiring the user to provide a database file themselves in the configuration, and the default mpd user would also fail to access the /dev/snd/* devices due to the mpd user not deing in the audio group. Having 'group' in mpd.conf would also cause mpd to strip the user's supplementary groups, making this issue more likely. Other note-worthy changes: * Log to syslog by default (to match upstream behavior) * Auto-detect the mixer type (to match upstream behavior) I hope the series helps you to setup MPD too. Maxim Cournoyer (17): services: mpd: Add an 'update' action to trigger a database update. services: mpd: Streamline mpd-user-sanitizer and mympd-user-sanitizer. services: mpd: Rename %set-user-group to set-user-group. services: mpd: Obsolete the 'group' field. services: mpd: List log-level in decreasing verbosity order in doc. services: mympd: Fix log file name. services: mpd: Log to syslog by default. services: mpd: Only rotate log when a log file is specified. services: mpd: Let Shepherd effect the user/group change. system: accounts: Export . services: mpd: Warn when the MPD user is not in the "audio" group. services: mpd: Auto-detect mpd-output mixer type by default. services: mpd: Fix indentation. services: mpd: Obsolete 'environment-variables' field. services: mpd: Provision a default cache directory and set HOME. services: mpd: Update basic example. services: Avoid 'delete' overrides warning in audio module. doc/guix.texi | 79 ++++++---- gnu/services/audio.scm | 311 +++++++++++++++++++++++----------------- gnu/system/accounts.scm | 3 +- 3 files changed, 228 insertions(+), 165 deletions(-) base-commit: ccf64b6a8b8718a8bb69719cf9ed2873464e3850 prerequisite-patch-id: eace011dd080f709a8eeb77c7a739f87079dbb81 prerequisite-patch-id: fd596ecff861483a486910ca0feecded27f6a4a2 prerequisite-patch-id: 948c73edc0a8a0a21b1d4f6878d3f09158059f38 prerequisite-patch-id: becfd217e53934fe9ef16939ff433e5ed00a4b1e prerequisite-patch-id: 20f12e01af25b881e362ea7dc837a07aeec8a489 prerequisite-patch-id: 7534d08dbc06589ce0fe7bd306585321cb5385d1 -- 2.39.2