refactor(shell): split shell config
This commit is contained in:
parent
fe0d7069c1
commit
22bf1600b1
7 changed files with 102 additions and 85 deletions
14
home/shell/direnv.nix
Normal file
14
home/shell/direnv.nix
Normal file
|
@ -0,0 +1,14 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
nix-direnv.enable = true;
|
||||
};
|
||||
|
||||
# for .envrc's in child directories add "source_up"
|
||||
# for them to pick up this config
|
||||
home.file."dev/work/.envrc".text = ''
|
||||
dotenv
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue