mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-25 01:07:15 +08:00
use envExtra
This commit is contained in:
parent
b0f8eb5ee5
commit
631e75f751
2 changed files with 8 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue