[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Proposal: auto-instantiate services with a default value
From: |
Ricardo Wurmus |
Subject: |
Re: Proposal: auto-instantiate services with a default value |
Date: |
Tue, 09 Jan 2018 14:42:21 +0100 |
User-agent: |
mu4e 1.0-alpha3; emacs 25.3.1 |
Ludovic Courtès <address@hidden> writes:
>> Also, that means that the instantiated mcron-service would automatically get
>> a rottlog entry even though the mcron-service-types's default job list is
>> empty, right ?
>
> Correct.
>
>> In that case it would be nice to be able to (optionally) override this
>> mcron-service by a custom mcron-service in /etc/config.scm but retain the
>> modified configuration with the implicit job in it. Is that possible?
>
> Sure, the current way to do things (which is to explicitly list rottlog
> *and* mcron) would remain valid, and you could pass your own mcron
> config this way.
If a user already had an mcron service with a custom configuration,
it would still be extended as needed by adding the rottlog-service — or
am I mistaken?
I think auto-instantiation is great when it all shows up with “guix
system extension-graph” and users can thus figure out why certain
services were instantiated unexpectedly.
--
Ricardo
GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC
https://elephly.net