From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kNAZJoWsyGbcWAAA62LTzQ:P1 (envelope-from ) for ; Fri, 23 Aug 2024 15:36:37 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id kNAZJoWsyGbcWAAA62LTzQ (envelope-from ) for ; Fri, 23 Aug 2024 17:36:37 +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=aLt6icQB; 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=1724427397; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=urmCZQlK4Xfo9pHsQRsI8jcwdUwC/q43Kq67VQGPSyE=; b=JL+1ZNvO/u0pHKeNjt+15P5SetXER/ieI0BfvVuQR7jNSnUC8T52i0zt8C+47ZJMa4Q1zL 5svOxDCzWj4amJ+48h/K+saeZjrg1tCnqhA9zX6L2RpVKqK1NIjGb9/HinfW21WvTgB2HQ s063rprWzNbhlFJ0LxMvgunXEED5wjPD2HKx9NMvlB0JEJuk+RMfU22OaQonslITYZBkj0 Cz1q7vLYLsk4sYNGEqknas85lyogHWk9bI1z5zbhdP8Bpe5+LknWPnjyQ+ebpXSQCj4NYm weRttABlw+aJKsdT1xHlqKHON6amHBmq5pbLKAPspTWPc11mdZNpmTNNy6C4Lw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1724427397; a=rsa-sha256; cv=none; b=O2krz1Aq6Fip+iDkGhzJtmho6VsqZvLGON5Ab6RiBDDChFMCpTPbuEEhToXiaYjUCQ1hn0 TC7L0CUrb2VDrZRvugHUhQcd7j9H4Hd+6cikAtiDsFxhf/CrGugZ/1ctED4duYb/ZGc6E0 joj+dk89F+V2rPw4NIodghbsmKqsYL/SLJi2Nc6XTF2NtIt5cJi2KuIbktXq8B77IGREJA kUVQrZleG9uCkPZ27jEV9lSpYgqISJlcmr9xdaJNpIchaiVu3v6/8eco7MUFN8RF7T796v Or5miChJm3KXPDmYV7uAK0yd119vmrjY3QCPnFpMTzFgVymenvWypS2aDIkyoQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=aLt6icQB; 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" 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 6C7777617D for ; Fri, 23 Aug 2024 17:36:37 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1shWKt-0008O0-7J; Fri, 23 Aug 2024 11:36:23 -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 1shWKm-0008N5-TB for guix-patches@gnu.org; Fri, 23 Aug 2024 11:36:18 -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 1shWKm-0005Mf-1g for guix-patches@gnu.org; Fri, 23 Aug 2024 11:36:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=urmCZQlK4Xfo9pHsQRsI8jcwdUwC/q43Kq67VQGPSyE=; b=aLt6icQBhrzZQm6YjhaP/LoAhgtMV+JKty7v7qQx9tx2Apqj5x0C+ZG3x1YZ5O8t0itb395RHS1McFF5cTUNGv/m4ScrfZbTdprPSL3DQ3FjfzJ7ng9JwyVkScGwQQqV82AURMKZWQMVpbUtZs7uy+XnVX+A3CZnnDphYAcNBowuOntu9/CFzmRVJw8oW8BwIfXOR3+fY2KvejG0WIePY5gZUAQ0WxMVvq5tvl1ZE+/Z+iUqRRWtumKXlFQbb4ohJA1dR6dSTbBVH9lG70HZKVrBhW1tJ/upH+zVNGWStsvky+4VlyWspATFhW2zJnJFpQDCqZl1FDXKh8YKk9Zlmg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1shWLW-0003z7-CN for guix-patches@gnu.org; Fri, 23 Aug 2024 11:37:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72398] [PATCH v4] services: Add readymedia-service-type. Resent-From: Bruno Victal Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Aug 2024 15:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72398 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Fabio Natali Cc: arunisaac@systemreboot.net, 72398@debbugs.gnu.org Received: via spool by 72398-submit@debbugs.gnu.org id=B72398.172442736415235 (code B ref 72398); Fri, 23 Aug 2024 15:37:02 +0000 Received: (at 72398) by debbugs.gnu.org; 23 Aug 2024 15:36:04 +0000 Received: from localhost ([127.0.0.1]:40016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shWKa-0003xf-0e for submit@debbugs.gnu.org; Fri, 23 Aug 2024 11:36:04 -0400 Received: from smtpmciv5.myservices.hosting ([185.26.107.241]:32952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1shWKX-0003xE-N9 for 72398@debbugs.gnu.org; Fri, 23 Aug 2024 11:36:02 -0400 Received: from mail1.netim.hosting (unknown [185.26.106.172]) by smtpmciv5.myservices.hosting (Postfix) with ESMTP id 9D9ED204C1; Fri, 23 Aug 2024 17:35:12 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 1044480097; Fri, 23 Aug 2024 17:35:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-1.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id dDVDS034bJJa; Fri, 23 Aug 2024 17:35:11 +0200 (CEST) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 53D5280094; Fri, 23 Aug 2024 17:35:11 +0200 (CEST) Message-ID: <5c35d80d-610f-4521-875b-34dabdc7717f@makinata.eu> Date: Fri, 23 Aug 2024 16:35:10 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird References: <87r0agp27q.fsf@systemreboot.net> Content-Language: en-US From: Bruno Victal In-Reply-To: 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: 6C7777617D X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -10.51 X-Spam-Score: -10.51 X-TUID: fpglLxmlQnKK On 2024-08-23 12:04, Fabio Natali via Guix-patches via wrote: > Here's a short recap of how to test this. > > Save this system definition in a file, e.g. '/tmp/config.scm'. Note the insecure > user credentials. Think you can go the extra step and write a system test for this? That'd greatly simplify future checks and ease the maintenance burden as well. > +Consider the following configuration: > + > +@lisp > +(use-service-modules upnp @dots{}) > + > +(operating-system > + ;; @dots{} > + (services > + (list > + (service readymedia-service-type > + (readymedia-configuration > + (media-directoriess > + (list > + (readymedia-media-directory (path "/media/audio") > + (type 'A)) > + (readymedia-media-directory (path "/media/video") > + (type 'V)) > + (readymedia-media-directory (path "/media/misc")))) Since the types can be a combination, you're going to want to express these as a list, e.g. --8<---------------cut here---------------start------------->8--- (type '(A)) (type '(A P)) … --8<---------------cut here---------------end--------------->8--- an empty list being the default value standing for "no type specified" if I got the meaning right from the documentation. -- Cheers, Bruno.