1
0
Fork 0
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:
Daiderd Jordan 2018-07-08 11:25:23 +02:00
parent 9f18c93771
commit 4cd5454f29
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -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 "$@"
}