From 3787cf4da1848de5c92e067f3623cc6a1c955ba4 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 19 Feb 2021 21:19:20 +0000 Subject: [PATCH] home: add direnv This uses nixos-community's version of `use_nix` which allows for persistent shells, and is now compatible with flakes. --- home/default.nix | 1 + home/direnv.nix | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 home/direnv.nix diff --git a/home/default.nix b/home/default.nix index c3f96c7..33e889a 100644 --- a/home/default.nix +++ b/home/default.nix @@ -1,6 +1,7 @@ { ... }: { imports = [ + ./direnv.nix ./zsh ]; } diff --git a/home/direnv.nix b/home/direnv.nix new file mode 100644 index 0000000..1b3d608 --- /dev/null +++ b/home/direnv.nix @@ -0,0 +1,8 @@ +{ ... }: +{ + programs.direnv = { + enable = true; + # A better `use_nix` + enableNixDirenvIntegration = true; + }; +}