From 0af4a4e1e6d5b57c92d6676f8843b8d96fdf6240 Mon Sep 17 00:00:00 2001 From: Garionion Date: Tue, 29 Mar 2022 19:48:17 +0200 Subject: [PATCH] add direnv --- default.nix | 2 +- zsh.nix | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 35350af..b9bce58 100644 --- a/default.nix +++ b/default.nix @@ -10,7 +10,7 @@ packages = with pkgs; [ wget vim screen mtr iperf htop dstat dnsutils nettools tcpdump - git bat starship + git bat starship direnv ]; hashedPassword = "$6$NMzXsfARs2HVA4iq$55uxWCANME/HsjIg9HmZyxqGwlr7RpJfCcMad2OhbmUiHhdnOh/v9TDwT3Vt0mu9HE37Fh3b1g2yyEa3Dxxg80"; extraGroups = [ "wheel" ]; # Enable ‘sudo’ for the user. diff --git a/zsh.nix b/zsh.nix index 8af8d9f..63fb939 100644 --- a/zsh.nix +++ b/zsh.nix @@ -19,6 +19,8 @@ function command_not_found_handler() { command-not-found $1 } export $(gnome-keyring-daemon --components=ssh,secrets,pkcs11 --start) alias cat='bat' + + eval "$(direnv hook zsh)" eval "$(starship init zsh)" ''; };