feat: direnv

This commit is contained in:
Laureηt 2022-12-21 21:03:18 +01:00
parent 00dc335226
commit 5da8b87fc8
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI
4 changed files with 9 additions and 2 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use nix

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.direnv

View file

@ -159,6 +159,7 @@ in {
bindkey "^[[1;3D" backward-word
bindkey '^H' backward-kill-word
bindkey '5~' kill-word
eval "$(direnv hook zsh)"
'';
plugins = [
{
@ -184,6 +185,11 @@ in {
];
};
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
programs.git = {
enable = true;
userName = "Laureηt";

View file

@ -1,4 +1,3 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell { buildInputs = [ colmena nixfmt ]; }
pkgs.mkShell { buildInputs = with pkgs; [ colmena nixfmt ]; }