[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#72398] [PATCH v4] services: Add readymedia-service-type.
From: |
Bruno Victal |
Subject: |
[bug#72398] [PATCH v4] services: Add readymedia-service-type. |
Date: |
Fri, 23 Aug 2024 16:35:10 +0100 |
User-agent: |
Mozilla Thunderbird |
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.