dotfiles/.envrc
2022-05-07 07:32:25 +02:00

13 lines
443 B
Plaintext

if ! has nix_direnv_version || ! nix_direnv_version 2.1.0; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.1.0/direnvrc" "sha256-FAT2R9yYvVg516v3LiogjIc8YfsbWbMM/itqWsm5xTA="
fi
use flake
use_sops() {
local path=${1:-$PWD/secrets.yaml}
eval "$(sops -d --output-type dotenv "$path" | direnv dotenv bash /dev/stdin)"
watch_file "$path"
}
use sops $PWD/nixos/secrets/admins/drone-ci.yaml 2>/dev/null