mirror of
https://github.com/LnL7/nix-darwin.git
synced 2025-03-28 02:37:09 +00:00
lnl: add direnv
This commit is contained in:
parent
9f18c93771
commit
4cd5454f29
1 changed files with 13 additions and 0 deletions
|
@ -31,6 +31,7 @@
|
|||
[ pkgs.brotli
|
||||
pkgs.ctags
|
||||
pkgs.curl
|
||||
pkgs.direnv
|
||||
pkgs.fzf
|
||||
pkgs.gettext
|
||||
pkgs.git
|
||||
|
@ -211,6 +212,18 @@
|
|||
'';
|
||||
|
||||
programs.zsh.loginShellInit = ''
|
||||
:l() {
|
||||
if [ ! -e .envrc ]; then
|
||||
echo 'use nix' > .envrc
|
||||
fi
|
||||
direnv allow
|
||||
eval "$(direnv hook zsh)"
|
||||
}
|
||||
|
||||
:r() {
|
||||
direnv reload
|
||||
}
|
||||
|
||||
aarch-build() {
|
||||
nix-build --option system aarch64-linux --store ssh-ng://aarch1 "$@"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue