From 58c37322bd487ed28c4604340f82b1e7769e8666 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 9 Nov 2020 18:42:38 -0500 Subject: nixify (start to nixify) --- .envrc | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .envrc (limited to '.envrc') diff --git a/.envrc b/.envrc new file mode 100644 index 00000000..dd2752c9 --- /dev/null +++ b/.envrc @@ -0,0 +1,13 @@ +if type lorri &>/dev/null; then + echo "direnv: using lorri from PATH ($(type -p lorri))" + eval "$(lorri direnv)" +else + # fall back to using direnv's builtin nix support + # to prevent bootstrapping problems. + use nix + NIX_ENFORCE_PURITY=0 +fi +# source an additional user-specific .envrc in ./.envrc-local +if [ -e .envrc-local ]; then + source .envrc-local +fi -- cgit v1.2.3 From fc00c1e76f2dc077486da90908c9cd0a0ca78b0e Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Fri, 18 Jun 2021 10:23:42 -0400 Subject: nix: update things nix --- .envrc | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to '.envrc') diff --git a/.envrc b/.envrc index dd2752c9..6bb4547e 100644 --- a/.envrc +++ b/.envrc @@ -1,13 +1,4 @@ -if type lorri &>/dev/null; then - echo "direnv: using lorri from PATH ($(type -p lorri))" - eval "$(lorri direnv)" -else - # fall back to using direnv's builtin nix support - # to prevent bootstrapping problems. - use nix - NIX_ENFORCE_PURITY=0 -fi -# source an additional user-specific .envrc in ./.envrc-local -if [ -e .envrc-local ]; then - source .envrc-local +NIX_ENFORCE_PURITY=0 +if [ -e .envrc-local ]; then # source an additional user-specific .envrc in ./.envrc-local + source .envrc-local fi -- cgit v1.2.3 From 338db72033d06f052b91c291c77bfbf687890f23 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 10 Apr 2022 13:49:46 -0400 Subject: project config minor, also .gitignore --- .envrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to '.envrc') diff --git a/.envrc b/.envrc index 6bb4547e..c0adda9e 100644 --- a/.envrc +++ b/.envrc @@ -1,4 +1,8 @@ NIX_ENFORCE_PURITY=0 -if [ -e .envrc-local ]; then # source an additional user-specific .envrc in ./.envrc-local - source .envrc-local +if ! has nix_direnv_version || ! nix_direnv_version 1.4.0; then +# https://github.com/nix-community/nix-direnv + source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/1.4.0/direnvrc" "sha256-4XfVDjv75eHMWN4G725VW7BoOV4Vl3vAabK4YXIfPyE=" +fi +if [ -e .env/local ]; then + source_env_if_exists .env/local || source .env/local fi -- cgit v1.2.3