[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: adding environment variables to /etc/config.scm

From: Ludovic Courtès
Subject: Re: adding environment variables to /etc/config.scm
Date: Tue, 03 Sep 2019 11:27:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux)

Hello Jonathan,

"Jonathan Lane" <address@hidden> skribis:

> I have a laptop with Intel graphics and I need to set the environment
> variable "COGL_ATLAS_DEFAULT_BLIT_MODE=framebuffer" to fix GPU 
> corruption issues as described here:
> Unfortunately, it's supposed to go in /etc/environment, and that file
> gets clobbered every time I reboot or run `guix system reconfigure`.

Indeed, on Guix System one is not supposed to modify config files in

Instead, you declare every aspect of your system config in your
‘operating-system’ declaration, and then run ‘reconfigure’ so that it’s
in effect.

To add environment variables to /etc/environment, you would “extend”
‘session-environment-service-type’, like so:

  (simple-service 'cogl-variable session-environment-service-type
                  '(("COGL_ATLAS_DEFAULT_BLIT_MODE" . "framebuffer")))

The expression above provides a service that you can add to the list in
the ‘services’ field of your ‘operating-system’ declaration.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]