[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Services can now have a default value

From: Ricardo Wurmus
Subject: Re: Services can now have a default value
Date: Mon, 17 Apr 2017 13:56:54 +0200
User-agent: mu4e 0.9.18; emacs 25.1.1

ng0 <address@hidden> writes:

> Before I lock myself out, this is the definition for defaults.
> So:
>  (service openssh-service-type
>           (openssh-configuration
>             (port-number 12121)))
> becomes:
>   (service openssh-service-type
>           (port-number 12121))
> or is this just a definition for defaults and not the configuration, and
> when the configuration is specified it is still like before this commit?

The “openssh-service-type” has a default value
“(openssh-configuration)”.  If you want to override parts of the default
configuration you can use the “modify-services” syntax.  Your second
snippet is incorrect, because “service” expects a type and a
configuration value, but you gave it a type and “(port-number 12121)”,
which is not a valid configuration.


GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC

reply via email to

[Prev in Thread] Current Thread [Next in Thread]