From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Mazurkiewicz Subject: Fwd: Initial variables value? Date: Wed, 22 May 2019 15:04:18 +0200 Message-ID: References: <51BD8328-EE62-4A55-BB5B-D103EFB9A7AF@lepiller.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:56827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTOa3-00048Z-Sg for help-guix@gnu.org; Wed, 22 May 2019 06:34:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hTOZy-00006K-S6 for help-guix@gnu.org; Wed, 22 May 2019 06:34:43 -0400 Received: from mail-qt1-x833.google.com ([2607:f8b0:4864:20::833]:42241) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hTOZw-0008Uv-UK for help-guix@gnu.org; Wed, 22 May 2019 06:34:38 -0400 Received: by mail-qt1-x833.google.com with SMTP id j53so1639782qta.9 for ; Wed, 22 May 2019 03:34:35 -0700 (PDT) In-Reply-To: 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: help-guix@gnu.org niedz., 19 maj 2019 o 10:05 Julien Lepiller napisa=C5= =82(a): > > Le 19 mai 2019 08:36:27 GMT+02:00, Adam Mazurkiewicz a= =C3=A9crit : > >How to watch the initial variables values? There are some important > >variables used in config.scm file. What would be the recommended way > >to extract eg the variable of %desktop-services ? And where are they > >declared? > > Hi, > > There are different ways to find these values. You can grep through the c= ode from https://git.savannah.gnu.org/git/guix.git (https://git.savannah.gn= u.org/cgit/guix.git for the web version). You can also run `guix repl` and = type the variable name (you might need to import some modules before, I did= n't check). Most of the time however, these variables are explained in the = manual. I tried the advise to use `guix repl` and type the variable name, but it displayed nothing so it apparently needs to import the modules before. > > For %desktop-services, the actual definition is around here: https://git.= savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm#n1047 It is a good advise. Thanks > > For default values of records, you'll have look at the code or the manual= . Services are defined in gnu/services/*.scm. Thanks for your answer, Julien Regards