From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: Services can now have a default value Date: Sat, 15 Apr 2017 23:11:42 +0000 Message-ID: <20170415231142.xqo7bw7vqzpt3szc@abyayala> References: <87shl9qo7h.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1czWr9-0006VP-5C for guix-devel@gnu.org; Sat, 15 Apr 2017 19:11:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1czWr4-0003uk-DG for guix-devel@gnu.org; Sat, 15 Apr 2017 19:11:51 -0400 Content-Disposition: inline In-Reply-To: <87shl9qo7h.fsf@gnu.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel Ludovic Court=C3=A8s transcribed 0.4K bytes: > Hello Guix! >=20 > With commit 1bb895eabf74a1e571887eb1521915e668a5c28d, service types can > declare a default value for their instances. After this one can write: >=20 > (service openssh-service-type) >=20 > instead of: >=20 > (service openssh-service-type (openssh-configuration)) >=20 > A bit of typing saved! >=20 > Note that this changes breaks the ABI for services, so make sure to run > =E2=80=9Cmake clean-go && make=E2=80=9D. >=20 > Feedback welcome! >=20 > Ludo=E2=80=99. >=20 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? --=20 PGP and more: https://people.pragmatique.xyz/ng0/