16 lines
719 B
Bash
16 lines
719 B
Bash
if ! has nix_direnv_version || ! nix_direnv_version 3.0.6; then
|
|
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.6/direnvrc" "sha256-RYcUJaRMf8oF5LznDrlCXbkOQrywm0HDv1VjYGaJGdM="
|
|
fi
|
|
|
|
# Bech32-encoded reference to the age private key at `systems/ncm/master.age` in gopass.
|
|
# age-plugin-gopass resolves the key at decrypt time — no key material lives here.
|
|
# Regenerate: age-plugin-gopass identity-for systems/ncm/master.age
|
|
export AGE_DOTENV_IDENTITY="AGE-PLUGIN-GOPASS-1WDUHXAR9D4EJ7MNRD5HK6CTNW3JHYTNPVAJSR20H3D"
|
|
load_age_dotenv .env.age
|
|
|
|
watch_file flake.nix
|
|
|
|
if ! use flake . --no-pure-eval
|
|
then
|
|
echo "development shell could not be built. The nix environment was not loaded." >&2
|
|
fi
|