summaryrefslogtreecommitdiffstats
path: root/makefu/2configs/home-manager
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2020-09-16 22:28:58 +0200
committermakefu <github@syntax-fehler.de>2020-09-16 22:28:58 +0200
commit1af471af1eec077bc21ff0c96679362f055beaaa (patch)
treeb84b8a6dda802bbf647a6ac9a94873b319aa7d01 /makefu/2configs/home-manager
parent3a93c400a3f8e58a4d10ae743fbdbada216d8641 (diff)
ma home-manager/direnv: remove custom use_nix
Diffstat (limited to 'makefu/2configs/home-manager')
-rw-r--r--makefu/2configs/home-manager/cli.nix25
1 files changed, 0 insertions, 25 deletions
diff --git a/makefu/2configs/home-manager/cli.nix b/makefu/2configs/home-manager/cli.nix
index 5d5673b81..38d02424c 100644
--- a/makefu/2configs/home-manager/cli.nix
+++ b/makefu/2configs/home-manager/cli.nix
@@ -2,31 +2,6 @@
imports = [ ./zsh.nix ];
home-manager.users.makefu = {
programs.direnv = {
- stdlib = ''
-use_nix() {
- local cache=".direnv.$(nixos-version --hash)"
-
- if [[ ! -e "$cache" ]] || \
- [[ "$HOME/.direnvrc" -nt "$cache" ]] || \
- [[ ".envrc" -nt "$cache" ]] || \
- [[ "default.nix" -nt "$cache" ]] || \
- [[ "shell.nix" -nt "$cache" ]];
- then
- local tmp="$(mktemp "$${cache}.tmp-XXXXXXXX")"
- trap "rm -rf '$tmp' >/dev/null" EXIT
- nix-shell --show-trace "$@" --run 'direnv dump' > "$tmp" && \
- mv "$tmp" "$cache"
- fi
-
- direnv_load cat "$cache"
-
- if [[ $# = 0 ]]; then
- watch_file default.nix
- watch_file shell.nix
- rm direnv.* 2>/dev/null
- fi
-}
-'';
enableZshIntegration = true;
};
};