Fediversity/.envrc

16 lines
496 B
Bash

#!/usr/bin/env bash
# the shebang is ignored, but nice for editors
# shellcheck shell=bash
if type -P lorri &>/dev/null; then
eval "$(lorri direnv)"
else
echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]'
use_nix
fi
# TODO: how to make this work for a test?
export NIX_CONFIG="
extra-substituters = https://cache.saumon.network/proxmox-nixos
trusted-public-keys = proxmox-nixos:D9RYSWpQQC/msZUWphOY2I5RLH5Dd6yQcaHIuug7dWM=
"