home: only put doom in path if emacs is enabled

This commit is contained in:
Antoine Martin 2022-01-11 14:12:06 +01:00
parent 328b59ed03
commit be9268236a
2 changed files with 2 additions and 1 deletions

View file

@ -5,6 +5,8 @@
}; };
config = lib.mkIf config.my.home.emacs.enable { config = lib.mkIf config.my.home.emacs.enable {
home.sessionPath = [ "${config.xdg.configHome}/emacs/bin" ];
home.sessionVariables = { home.sessionVariables = {
EDITOR = "emacsclient -t"; EDITOR = "emacsclient -t";
}; };

View file

@ -1,7 +1,6 @@
{ config, ... }: { config, ... }:
{ {
home.sessionPath = [ home.sessionPath = [
"${config.xdg.configHome}/emacs/bin"
"${config.home.homeDirectory}/.cargo/bin" "${config.home.homeDirectory}/.cargo/bin"
"${config.home.homeDirectory}/.local/bin" "${config.home.homeDirectory}/.local/bin"
]; ];