From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ANZpLqOc6F8nbAAA0tVLHw (envelope-from ) for ; Sun, 27 Dec 2020 14:39:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UIsxKqOc6F8vWwAAbx9fmQ (envelope-from ) for ; Sun, 27 Dec 2020 14:39:31 +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 412C69404C7 for ; Sun, 27 Dec 2020 14:39:31 +0000 (UTC) Received: from localhost ([::1]:35418 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ktXCk-00049h-7C for larch@yhetil.org; Sun, 27 Dec 2020 09:39:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:55314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktXCY-00045o-Fz for help-guix@gnu.org; Sun, 27 Dec 2020 09:39:18 -0500 Received: from tobias.gr ([2a02:c205:2020:6054::1]:40880) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ktXCW-0003Tx-BG for help-guix@gnu.org; Sun, 27 Dec 2020 09:39:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tobias.gr; s=2018; bh=CLDgiBX5WM6dry0SvX4jqy8qE7nFnVW9Va3BSnzeLNE=; h=date:in-reply-to: references:subject:cc:to:from; b=ez0hqlv+OQ4xeMxHarCOVWx6Qky2wyRO/kBMH IKVWOsneR+HcKOPrP7kkluj8IC0UwcmTtFJuCQZF2nL053v6hx7ba3Ecx5HRzEWWjxT54j AjwwTMyY5T9XG+dVFMB8z6vYM0yT3ngg1v+SMHkXgeWkWwUJm+OihUWUkSCyF4ppann1LP WDP2/b/xM/xYydJK7if+D+UHmt52zfYk8ukxbgG+CbwgyzDyM5k2BI3KxBi2zoViVWW/08 i5D5iuciq0iKD71Ifk8LDu2GvZCfPnSfTPg5X4Ohc8MtS7fN0KTESSOyek4wiSiqp2KONN q0hZymWHoFWUUl2eHkN8iwt5g== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 510b291c (TLSv1.2:ECDHE-ECDSA-AES256-GCM-SHA384:256:NO); Sun, 27 Dec 2020 14:39:38 +0000 (UTC) BIMI-Selector: v=BIMI1; s=default; From: Tobias Geerinckx-Rice To: Lo Peter Subject: Re: How to set global environment variables in Guix System References: In-reply-to: Message-ID: <87zh1zqpo0.fsf@nckx> Date: Sun, 27 Dec 2020 15:39:11 +0100 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr 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, SPF_HELO_PASS=-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: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.62 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=tobias.gr header.s=2018 header.b=ez0hqlv+; dmarc=pass (policy=reject) header.from=tobias.gr; 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: 412C69404C7 X-Spam-Score: -4.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: gkk4hoqOJw1a --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Peter! Lo Peter =E5=86=99=E9=81=93=EF=BC=9A > ~/.pam_environment I don't think we configure PAM to look at this by default. I'm=20 not sure why GDM doesn't load ~/.profile (it may be right not to=20 =2D- most of these files are abused). I'd never heard of=20 ~/.xprofile. > Any help is greatly appreciated. Also, I think a way to let user > customize /etc/environment through the system config will be=20 > useful, > but I do not find a way to do so. That already exists, but it seems to be wholly undocumented(?).=20 Boo. Also, IIRC blindly plonking (session-environment-service-type '(("FOO" . "bar"))) into your services would only get you the =E2=80=98duplicate service=E2=80= =99=20 error. It's meant to be extended. First, define this in your system.scm (above your=20 operating-system): (define environment-service-type (service-type (name 'environment) (default-value '()) (extensions (list (service-extension session-environment-service-type identity))))) Then use it in your services field: (service environment-service-type '(("GTK_IM_MODULE" . "ibus") ("QT_IM_MODULE" . "ibus") ...)) I hope that helps, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCX+ickA0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15DcQBAJ1LCVGk9EsACi6W+7XSma3JL3yU6AKuUROAtx46 t9zWAQCiMfTytLu5Gnnl/A3pC3Y1MwOPoMLIC+DSWf+yMjaQCA== =9JEn -----END PGP SIGNATURE----- --=-=-=--