-
Notifications
You must be signed in to change notification settings - Fork 2
/
.envrc
22 lines (18 loc) · 965 Bytes
/
.envrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
stty sane
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.4/direnvrc" "sha256-DzlYZ33mWF/Gs8DDeyjr8mnVmQGx7ASYqA5WlxwvBG4="
rbw-atomic-unlock
watch_file devenv.nix
watch_file flake.nix
watch_file flake.lock
watch_file flake/*.nix
watch_file devenv/*.nix
if ! use flake . --impure
then
echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2
fi
PATH_add /run/wrappers/bin
export CLOUDFLARE_EMAIL="$(rbw get cloudflare.com --full [email protected] | tail -n+2 | head -n1 | awk '{print $2}')"
export CLOUDFLARE_API_TOKEN="$(rbw get cloudflare.com --full [email protected] | grep cf_api_token | awk '{print $2}')"
export HCLOUD_TOKEN="$(rbw get hetzner -- default-project-token)"
export TAILSCALE_API_KEY="$(rbw get hetzner -- tailscale-terraform)"
export GH_TOKEN="$(rbw get github.com --full -- johnae | grep "Clone user" | awk -F': ' '{print $2}')"