From 69571dc48dad0043640fc80b1dc6f0b1f8a52be7 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sat, 16 Oct 2021 21:10:28 -0400 Subject: nix .envrc related --- org/config_nix.org | 44 ++++++++++++++++++++++++++++++-------------- 1 file changed, 30 insertions(+), 14 deletions(-) (limited to 'org/config_nix.org') diff --git a/org/config_nix.org b/org/config_nix.org index 2fd932c..c5bd8dd 100644 --- a/org/config_nix.org +++ b/org/config_nix.org @@ -78,8 +78,8 @@ 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 .envrc-local ]; then # source an additional user-specific .envrc in ./.envrc-local - source .envrc-local +if [ -e .env/local ]; then # source an additional user-specific .envrc in ./.env/local + source .env/local fi #+END_SRC @@ -94,8 +94,8 @@ else # fallback prevent bootstrapping problems by using direnv's builtin nix sup use nix NIX_ENFORCE_PURITY=0 fi -if [ -e .envrc-local ]; then # source an additional user-specific .envrc in ./.envrc-local - source .envrc-local +if [ -e .env/local ]; then # source an additional user-specific .envrc in ./.env/local + source .env/local fi #+END_SRC @@ -125,18 +125,18 @@ else use nix NIX_ENFORCE_PURITY=0 fi - # source an additional user-specific .envrc in ./.envrc-local - if [ -e .envrc-local ]; then - source .envrc-local + # source an additional user-specific .envrc in ./.env/local + if [ -e .env/local ]; then + source .env/local fi fi #+END_SRC -**** .envrc-local CHECK MODIFY +**** .env/local CHECK MODIFY - bespoke modify appropriately and generate if needed -#+HEADER: :tangle ../.envrc-local_ +#+HEADER: :tangle ../.env/local_ #+BEGIN_SRC sh export NIX_PATH=<> #export NIX_PATH=<> @@ -154,7 +154,15 @@ export SpinePOD=$SpineDOC/markup/pod export SpineOUTversioned=<> export SpineOUT=<> export SpineDBpath=<> +if [ -e .env/echo-nixNote ]; then + source .env/echo-nixNote +fi +#+END_SRC +**** .env/echo-nixNote CHECK MODIFY + +#+HEADER: :tangle ../.env/echo-nixNote +#+BEGIN_SRC sh echo '-*- mode: org -*- ,* nixpkgs path? @@ -665,7 +673,7 @@ pkgs.mkShell { #+BEGIN_SRC sh nix-build -I nixpkgs=/nixpkgs-ra/nixpkgs -nix-build -I .envrc-local +nix-build -I .env/local nix-build -I .envrc default.nix -I .envrc default.nix @@ -911,14 +919,14 @@ 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 .envrc-local ]; then # source an additional user-specific .envrc in ./.envrc-local - source .envrc-local +if [ -e .env/local ]; then # source an additional user-specific .envrc in ./.env/local + source .env/local fi #+END_SRC -**** .envrc-local +**** .env/local -#+HEADER: :tangle "../sundry/spine_search_cgi/.envrc-local_" +#+HEADER: :tangle "../sundry/spine_search_cgi/.env/local_" #+BEGIN_SRC sh export NIX_PATH=/nix/var/nix/profiles/per-user/root/channels/nixos #export NIX_PATH=nixpkgs=/nixpkgs-ra/nixpkgs @@ -937,7 +945,15 @@ export SpinePOD=$SpineDOC/markup/pod export SpineOUT=<> export SpineDBpath=<> export SpineCgiBIN=<> +if [ -e .env/echo-nixNote ]; then # source an additional user-specific .envrc in ./.env/local + source .env/echo-nixNote +fi +#+END_SRC +**** .env/local + +#+HEADER: :tangle "../sundry/spine_search_cgi/.env/echo-nixNote" +#+BEGIN_SRC sh echo '-*- mode: org -*- ,* nixpkgs path? -- cgit v1.2.3