[Top][All Lists]

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

Nix programs on path but not found

From: Stefan Baums
Subject: Nix programs on path but not found
Date: Tue, 22 Feb 2022 21:10:23 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux)

Dear all,

I am running Guix with EXWM. Prior to Guix, in Ubuntu, I used
~/.xinitrc to set some environment variables and run some startup
programs. Since this is apparently not read in Guix+EXWM, I put
the following at the top of my ~/.exwm instead:

   (setenv "PATH" (concat (getenv "PATH") ":/home/user/.nix-profile/bin"))
   (setq exec-path (append exec-path '("/home/user/.nix-profile/bin")))

followed by:

   (start-process "xinit" "xinit" "bash" "/home/user/.xinitrc")

After startup, in eshell I then get:

   ~ $ echo $PATH

and when I check the value of exec-path, it is:

   ("/run/setuid-programs" "/home/user/.config/guix/current/bin" 
"/home/user/.guix-profile/bin" "/home/user/.guix-profile/sbin" 
"/run/current-system/profile/bin" "/run/current-system/profile/sbin" 

(both as expected).

>From ansi-term and from async-shell-command, I am now also able to
run programs installed in my Nix profile (e.g., onboard), but NOT
from eshell (even though PATH is there shown as above), and NOT
from the .xinitrc invoked from my .exwm startup script.

Does anybody what is going on here, and how to fix it?

All best,

reply via email to

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