add direnv setup

This commit is contained in:
Felix Schröter 2019-12-12 15:44:05 +01:00 committed by Felix Schröter
parent 5f84140d34
commit d770ae8b26
3 changed files with 79 additions and 0 deletions

15
home/common/direnv.nix Normal file
View file

@ -0,0 +1,15 @@
{ config, pkgs, ... }:
with pkgs;
{
programs.direnv = {
enable = true;
enableBashIntegration = true;
enableFishIntegration = true;
stdlib = builtins.readFile ./.direnvrc;
};
home.file.".envrc".text = ''
dotenv
'';
}