use envExtra

This commit is contained in:
Sridhar Ratnakumar 2022-12-27 10:50:22 -05:00
parent b0f8eb5ee5
commit 631e75f751
2 changed files with 8 additions and 3 deletions

View file

@ -26,9 +26,11 @@
];
programs.zsh.enable = true;
# To put nix and home-manager-installed packages in PATH.
# TODO: Use sessionPath after https://github.com/nix-community/home-manager/issues/3324
programs.zsh.initExtra = ''
# This must be envExtra (rather than initExtra), because doom-emacs requires it
# https://github.com/doomemacs/doomemacs/issues/687#issuecomment-409889275
#
# But also see: 'doom env', which is what works.
programs.zsh.envExtra = ''
export PATH=/etc/profiles/per-user/$USER/bin:/run/current-system/sw/bin/:$PATH
# For 1Password CLI. This requires `pkgs.gh` to be installed.
source $HOME/.config/op/plugins.sh

View file

@ -1,6 +1,9 @@
{ pkgs, lib, inputs, system, ... }:
{
# on macOS, emacs can be launched via:
#
# open -a ~/Applications/Home\ Manager\ Apps/Emacs.app
programs.emacs = {
enable = true;
package =