From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jonathan Lane" Subject: Re: adding environment variables to /etc/config.scm Date: Tue, 03 Sep 2019 19:04:59 -0700 Message-ID: References: <87a7blybkr.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:39057) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5KfQ-0003nJ-Nu for help-guix@gnu.org; Tue, 03 Sep 2019 22:05:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5KfP-0001kW-SX for help-guix@gnu.org; Tue, 03 Sep 2019 22:05:04 -0400 In-Reply-To: <87a7blybkr.fsf@gnu.org> 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: =?utf-8?q?Ludovic_Court=C3=A8s?= Cc: help-guix@gnu.org On Tue Sep 3, 2019 at 11:27 AM Ludovic Court=C3=A8s wrote: > Hello Jonathan, =20 > Indeed, on Guix System one is not supposed to modify config files in > place. >=20 > Instead, you declare every aspect of your system config in your > =E2=80=98operating-system=E2=80=99 declaration, and then run =E2=80=98rec= onfigure=E2=80=99 so that it=E2=80=99s > in effect. >=20 > To add environment variables to /etc/environment, you would =E2=80=9Cexte= nd=E2=80=9D > =E2=80=98session-environment-service-type=E2=80=99, like so: >=20 > (simple-service 'cogl-variable session-environment-service-type > '(("COGL_ATLAS_DEFAULT_BLIT_MODE" . "framebuffer"))) >=20 > The expression above provides a service that you can add to the list in > the =E2=80=98services=E2=80=99 field of your =E2=80=98operating-system=E2= =80=99 declaration. >=20 > HTH! >=20 > Ludo=E2=80=99. This worked perfectly, thanks! Jonathan --posted from Guix System, now with working Xorg