From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giovanni Biscuolo Subject: Re: New reconfigure, creating a file under /etc Date: Wed, 09 Oct 2019 10:11:25 +0200 Message-ID: <87y2xuxrrm.fsf@roquette.mug.biscuolo.net> References: <20191007070305.GI561@E5400> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44026) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iI74c-00059g-FR for help-guix@gnu.org; Wed, 09 Oct 2019 04:11:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iI74Z-0008Mc-VW for help-guix@gnu.org; Wed, 09 Oct 2019 04:11:53 -0400 Received: from ns13.heimat.it ([46.4.214.66]:52654) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iI74Z-0008HL-CR for help-guix@gnu.org; Wed, 09 Oct 2019 04:11:51 -0400 In-Reply-To: <20191007070305.GI561@E5400> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Efraim Flashner Cc: "help-guix@gnu.org" Hi Efraim, thanks for the very interesting example! Efraim Flashner writes: [...] > (define %os-release-file > (plain-file "os-release" > (string-append > "NAME=\"Guix System\"\n" > "PRETTY_NAME=\"Guix System\"\n" > "VERSION=\""((@ (guix packages) package-version) (@ (gnu packages package-management) guix))"\"\n" > "ID=guix\n" > "HOME_URL=\"https://www.gnu.org/software/guix/\"\n" > "SUPPORT_URL=\"https://www.gnu.org/software/guix/help/\"\n" > "BUG_REPORT_URL=\"mailto:bug-guix@gnu.org\"\n"))) > > (simple-service 'os-release etc-service-type > `(("os-release" ,%os-release-file))) [...] IMHO this is a perfect candidate - whith many other replies in help-guix - for the Guix Cookbook (thanks Ricardo for creating it!): what about to expand your example in a patch for the cookbook? :-) Thanks! Gio' -- Giovanni Biscuolo Xelera IT Infrastructures