From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UIbzMEiN6F9weAAA0tVLHw (envelope-from ) for ; Sun, 27 Dec 2020 13:34:00 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KNfOLEiN6F8rVAAAB5/wlQ (envelope-from ) for ; Sun, 27 Dec 2020 13:34:00 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5763B9401CD for ; Sun, 27 Dec 2020 13:34:00 +0000 (UTC) Received: from localhost ([::1]:36480 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktWBK-0004id-UH for larch@yhetil.org; Sun, 27 Dec 2020 08:33:58 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46748) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktWAl-0004iU-8b for help-guix@gnu.org; Sun, 27 Dec 2020 08:33:24 -0500 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]:34276) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ktWAj-0007pe-9i for help-guix@gnu.org; Sun, 27 Dec 2020 08:33:22 -0500 Received: by mail-lf1-x133.google.com with SMTP id o19so18573553lfo.1 for ; Sun, 27 Dec 2020 05:33:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=VN99YNqlwP7PnqqI9JbpEcztI0pZFt0nJUXkoBYl2Gk=; b=crr4Dmwn1WwepUNwLauED20ao2P8jU+2sV9U0r5voPYBgEehjNYY1owNVVVj0Hp75a qEmc0Q84iE5ItLj8oUWNxYvqZS/zU1h2BKxApJdXQBg1Jd5rFpic1Y0UCG8JJi+kbTZ9 Xr3b0bVhz7QlyQZO/86RFhm7r4snvZWNZVpJ/O5wuFMBtRD0rjBivSa6aRaxTee9CwX0 V7O5X/4jzV3jF7C3Cb2WUs0Fl8rOeo9CnMP4GEFGuxq/7TBJH8Bgf6ei/ZAnlVPr8Doe wm48OIp2muucsrR/b4GI3F0LrowVLTm6wLi1Nlil2bvQcYUJ6Haq4ZF/XnyWQcnpvdD7 pczw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=VN99YNqlwP7PnqqI9JbpEcztI0pZFt0nJUXkoBYl2Gk=; b=POqDeNAp+gLW9I/UM5ltXX2kVQqdArQOqgutgZOr18hKrXwKR7DW+JxhHCqcrwZvG4 OT7FOn1jPnVWdFYJ1OMu1YjBxPeliZ2EoExlbQrBeBs6ZZ5CISOh/Y92ptp1rpIaWT01 fuNW7I0RB/gGuF+4JlSbCSD37n5GSHSfAGXZaMj56k8p1UFN5WZhlpKV7AFbi/Cw0jss s0S01GNl32eywPknF4UDykaR79NQxP6kaAzylZWYOtLn9jbDHCDu7J0HavphJBZ1ZYpC kzlRJFfCW9E+nEXAgwy1jBd1Y4wX/+mJrrSNGg0b5YMibgM2/wsxK0SbtV4LLD2aRzai NYAg== X-Gm-Message-State: AOAM533B9UMujiTxki6jIEuKWESaRh0q2EZORybIvMJW8WMg3mBv6nm0 3PTinJj4jqDPk0s98IuPzA3kdPwdkSUS09IIAo2XcTAOQgY= X-Google-Smtp-Source: ABdhPJzZsf/DgU393Xn30IgauQL6jNh3oUPZFNeuyqKjLYz75P1cGMPB7VevMbQxNF1Fgqou0Ib6CMrj+4XCweCZ7pg= X-Received: by 2002:a19:48ce:: with SMTP id v197mr16990797lfa.359.1609075996390; Sun, 27 Dec 2020 05:33:16 -0800 (PST) MIME-Version: 1.0 From: Lo Peter Date: Sun, 27 Dec 2020 21:35:02 +0800 Message-ID: Subject: How to set global environment variables in Guix System To: help-guix Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::133; envelope-from=peterloleungyau@gmail.com; helo=mail-lf1-x133.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.02 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=crr4Dmwn; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Migadu-Queue-Id: 5763B9401CD X-Spam-Score: -3.02 X-Migadu-Scanner: scn1.migadu.com X-TUID: Iucz07cVWnsx Dear All, I am trying to setup ibus-rime for Chinese input in guix system 1.2.0, after a lot of googling and trial and error, I found that I cannot set the needed environment variables: export GTK_IM_MODULE="ibus" export QT_IM_MODULE="ibus" export XMODIFIERS="@im=ibus" I have tried putting them in ~/.profile, ~/.pam_environment, ~/.xprofile and it seems they have no effects. If I am not mistaken, guix system now uses gdm as display manager, but I also cannot find a way to set environment variable for gdm sessions. 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. Thanks. Regards, Peter