From mboxrd@z Thu Jan 1 00:00:00 1970 From: ng0 Subject: Re: Services can now have a default value Date: Wed, 19 Apr 2017 23:22:49 +0000 Message-ID: <20170419232249.nd6p4i4wzmekyvqv@abyayala> References: <87shl9qo7h.fsf@gnu.org> <20170415231142.xqo7bw7vqzpt3szc@abyayala> <87h91n5jsp.fsf@elephly.net> 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]:52921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d0yw7-0000bE-BS for guix-devel@gnu.org; Wed, 19 Apr 2017 19:23:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d0yw3-0001P6-EE for guix-devel@gnu.org; Wed, 19 Apr 2017 19:22:59 -0400 Content-Disposition: inline In-Reply-To: <87h91n5jsp.fsf@elephly.net> 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: Ricardo Wurmus Cc: guix-devel Ricardo Wurmus transcribed 0.9K bytes: >=20 > ng0 writes: >=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 comm= it? >=20 > The =E2=80=9Copenssh-service-type=E2=80=9D has a default value > =E2=80=9C(openssh-configuration)=E2=80=9D. If you want to override par= ts of the default > configuration you can use the =E2=80=9Cmodify-services=E2=80=9D syntax.= Your second > snippet is incorrect, because =E2=80=9Cservice=E2=80=9D expects a type = and a > configuration value, but you gave it a type and =E2=80=9C(port-number 1= 2121)=E2=80=9D, > which is not a valid configuration. >=20 > --=20 > Ricardo >=20 > GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC > https://elephly.net >=20 Because I still don't think modify-services is documented well enough and I have only one case where it's working for me, I assume: As an example, (service openssh-service-type (openssh-configuration (permit-root-login #t))) Would still work. If it doesn't, I know there is no lint checking for ser= vices in the system config. --=20 PGP and more: https://people.pragmatique.xyz/ng0/