add direnv

This commit is contained in:
Abel Luck 2026-02-26 10:02:57 +01:00
parent 0ecc2f7b06
commit db6b90134d
3 changed files with 10 additions and 2 deletions

6
.envrc Normal file
View file

@ -0,0 +1,6 @@
#!/usr/bin/env bash
if [[ $(type -t use_flake) != function ]]; then
echo "ERROR: direnv's use_flake function missing. update direnv to v2.30.0 or later." && exit 1
fi
use flake
dotenv

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
.direnv

View file

@ -5,8 +5,9 @@
}; };
outputs = outputs =
{ self, flake-parts, ... }: inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit self; } { # https://flake.parts/module-arguments.html
flake-parts.lib.mkFlake { inherit inputs; } {
flake = { flake = {
# Put your original flake attributes here. # Put your original flake attributes here.
}; };