setting environment variables right
This commit is contained in:
parent
3e39c1ae13
commit
f979a8a98e
2 changed files with 5 additions and 21 deletions
|
@ -336,14 +336,17 @@ I am currently using NixOS. In order for emacs to have access to certain program
|
|||
(setenv "NIX_PROFILES" "${pkgs.lib.concatStringsSep " " config.environment.profiles}")
|
||||
(setenv "NIX_REMOTE" "daemon")
|
||||
(setenv "NIX_USER_PROFILE_DIR" "/nix/var/nix/profiles/per-user/%u")
|
||||
(setenv "")
|
||||
;; (load "site-paths" t)
|
||||
(setenv "CC" "/run/current-system/sw/bin/gcc")
|
||||
(setenv "CXX" "/run/current-system/sw/bin/g++")
|
||||
(setenv "QT_AUTO_SCREEN_SCALE_FACTOR" "1")
|
||||
(setenv "QT_SCALE_FACTOR" "1")
|
||||
#+end_src
|
||||
|
||||
Also due to using greetd, emacs isn't started with the environment from the system, so let's make sure it knows which wayland display we are using
|
||||
#+begin_src emacs-lisp
|
||||
(setenv "WAYLAND_DISPLAY" "wayland-1")
|
||||
(setenv "WAYLAND_DISPLAY" "wayland-0")
|
||||
#+end_src
|
||||
|
||||
#+RESULTS:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue