aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/config_nix.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2021-10-16 21:10:28 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2021-11-27 19:51:25 -0500
commit69571dc48dad0043640fc80b1dc6f0b1f8a52be7 (patch)
treee5297e743033db0e4cb92c4edf6fccab66e545fa /org/config_nix.org
parentorg files, tangle output, some fixes (diff)
nix .envrc related
Diffstat (limited to 'org/config_nix.org')
-rw-r--r--org/config_nix.org44
1 files changed, 30 insertions, 14 deletions
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=<<nix_path_channel>>
#export NIX_PATH=<<nixpkgs_path_local>>
@@ -154,7 +154,15 @@ export SpinePOD=$SpineDOC/markup/pod
export SpineOUTversioned=<<project_path_local_out>>
export SpineOUT=<<project_path_local_out_static>>
export SpineDBpath=<<project_path_sqlite>>
+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=<<project_path_local_out_static>>
export SpineDBpath=<<project_path_sqlite>>
export SpineCgiBIN=<<project_path_cgi_bin>>
+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?