unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Michael Rohleder <mike@rohleder.de>
To: Lo Peter <peterloleungyau@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: How to set global environment variables in Guix System
Date: Sun, 27 Dec 2020 15:07:41 +0100	[thread overview]
Message-ID: <87sg7r2vgy.fsf@rohleder.de> (raw)
In-Reply-To: <CAEM+zmi1Q9u88FphTnbxtGoaX-fs48vTZdZE-aEXvP-MmKm-ag@mail.gmail.com> (Lo Peter's message of "Sun, 27 Dec 2020 21:35:02 +0800")

[-- Attachment #1: Type: text/plain, Size: 545 bytes --]

Lo Peter <peterloleungyau@gmail.com> writes:
> Any help is greatly appreciated. Also, I think a way to let user
> customize /etc/environment through the system config will be useful,
> but I do not find a way to do so.

Try adding something like this to your system services:

(simple-service 'my-ibus-ch-env session-environment-service-type
                  '(("GTK_IM_MODULE" . "ibus")
                    ("QT_IM_MODULE" . "ibus")))
                    
-- 
Das Lernen vieler Dinge lehrt nicht Verständnis.
     Heraklit, B40

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 511 bytes --]

  reply	other threads:[~2020-12-27 14:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-27 13:35 How to set global environment variables in Guix System Lo Peter
2020-12-27 14:07 ` Michael Rohleder [this message]
2020-12-27 14:39   ` Tobias Geerinckx-Rice via
2020-12-27 16:22     ` Lo Peter
2020-12-27 14:39 ` Tobias Geerinckx-Rice

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sg7r2vgy.fsf@rohleder.de \
    --to=mike@rohleder.de \
    --cc=help-guix@gnu.org \
    --cc=peterloleungyau@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).