feat: added direnv support

This commit is contained in:
Patrick Großmann 2023-05-22 20:35:29 +09:00
parent c7d9818373
commit e81d178e6e
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
4 changed files with 15 additions and 1 deletions

2
.envrc Normal file
View file

@ -0,0 +1,2 @@
nix_direnv_watch_file ./nix/dev-shell.nix
use flake

2
.gitignore vendored
View file

@ -1,2 +1,2 @@
.pre-commit-config.yaml
templates
.direnv

11
users/common/devshell.nix Normal file
View file

@ -0,0 +1,11 @@
{
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
nix.extraOptions = ''
keep-outputs = true
keep-derivations = true
'';
}

View file

@ -3,6 +3,7 @@
../common/programs/kitty.nix
../common/graphical/hyprland.nix
../common/programs/rofi.nix
../common/devshell.nix
./ssh.nix
];