all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: dario <dario.klingenberg@web.de>
To: Oleg Pykhalov <go.wigust@gmail.com>
Cc: help-guix@gnu.org
Subject: Re: Setting environment variables for nix service
Date: Thu, 06 Aug 2020 17:47:01 +0200	[thread overview]
Message-ID: <877dubbwui.fsf@web.de> (raw)
In-Reply-To: <87k0ydqj6n.fsf@gmail.com>

Hi,


thanks for your input!

> Could you try ‘~/.bashrc’, please?

In that case, emacs still doesn't recognize the new environment
variables, but of course, any terminals I start withing exwm do. 
Still,
this doesn't really solve the problem. Anyway, I am currently 
working
around the issue by setting the variables manually in my init.el 
using
setenv, but I would still be interested in learning the proper way 
to
set environment variables in a gdm+exwm-setting.

By the way, ~/.bash_profile does get read, and I can e.g. 
autostart
programs by putting the respective commands in ~/.bash_profile. 
However,
environment variables set in ~/.bash_profile are not recognized by 
emacs.

Regarding my second question, it seems that the nix service is 
already
setting some of the nix-specific environment variables, but 
doesn't
change general ones such as $PATH. So maybe the feature I 
suggested is
already implemented, but they took care not change $PATH by 
default
because of the reason you mentioned.


Cheers,

Dario


Oleg Pykhalov <go.wigust@gmail.com> writes:

> Hi,
>
> dario <dario.klingenberg@web.de> writes:
>
>> Two
>> questions:
>>
>> 1. What is the proper way to do this? I am using gdm and exwm, 
>> and
>> adding the line to any of ~/.profile, ~/.xprofile, ~/.zprofile, 
>> or
>> ~/.bash_profile does not seem to have any effect in exwm.
>
> Probably GDM doesn't read those files by design.
>
> Could you try ‘~/.bashrc’, please?
>
>> 2. Couldn't the nix service take care of this automatically? 
>> I'd be
>> happy to contribute a corresponding path once I have the answer 
>> to my
>> first question.
>
> Probably yes, and the patch is welcome!  ;-) Just one 
> consideration - I
> think it should be optional, in case the automation will brake 
> because
> of Nix update or highly customized system.
>
> Regards,
> Oleg.



  reply	other threads:[~2020-08-06 15:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-08-04 13:34 Setting environment variables for nix service dario
2020-08-05 14:08 ` Oleg Pykhalov
2020-08-06 15:47   ` dario [this message]
2020-08-08 15:09     ` Setting environment variables for nix service [SOLVED] dario

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

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

  git send-email \
    --in-reply-to=877dubbwui.fsf@web.de \
    --to=dario.klingenberg@web.de \
    --cc=go.wigust@gmail.com \
    --cc=help-guix@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.