diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..a47b790 --- /dev/null +++ b/.envrc @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..92b2793 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.direnv diff --git a/flake.nix b/flake.nix index 3fa48d6..bd79f4a 100644 --- a/flake.nix +++ b/flake.nix @@ -5,8 +5,9 @@ }; outputs = - { self, flake-parts, ... }: - flake-parts.lib.mkFlake { inherit self; } { + inputs@{ flake-parts, ... }: + # https://flake.parts/module-arguments.html + flake-parts.lib.mkFlake { inherit inputs; } { flake = { # Put your original flake attributes here. };