From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Services can now have a default value Date: Mon, 17 Apr 2017 13:56:54 +0200 Message-ID: <87h91n5jsp.fsf@elephly.net> References: <87shl9qo7h.fsf@gnu.org> <20170415231142.xqo7bw7vqzpt3szc@abyayala> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d05HY-0008TF-Ov for guix-devel@gnu.org; Mon, 17 Apr 2017 07:57:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d05HX-0007Dm-MB for guix-devel@gnu.org; Mon, 17 Apr 2017 07:57:24 -0400 In-reply-to: <20170415231142.xqo7bw7vqzpt3szc@abyayala> 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: ng0 Cc: guix-devel ng0 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. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net