help-guix
[Top][All Lists]
Advanced

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

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


From: Jonathan Lane
Subject: Re: adding environment variables to /etc/config.scm
Date: Tue, 03 Sep 2019 19:04:59 -0700

On Tue Sep 3, 2019 at 11:27 AM Ludovic Courtès wrote:
> Hello Jonathan,
 
> Indeed, on Guix System one is not supposed to modify config files in
> place.
> 
> 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.
> 
> HTH!
> 
> Ludo’.

This worked perfectly, thanks!

Jonathan

--posted from Guix System, now with working Xorg




reply via email to

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