aboutsummaryrefslogtreecommitdiff
path: root/.envrc
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2020-08-29 18:37:54 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2020-08-29 18:37:54 +0200
commitda28a4e2afef21710f73860b26893fa18dd32858 (patch)
tree3ce951ff67ab7eb8d55fa79415bacaca85896256 /.envrc
parent1052bfda27ad0607cd4dc5dc91e2d8e8220c30c7 (diff)
downloadNix-da28a4e2afef21710f73860b26893fa18dd32858.tar.gz
Nix-da28a4e2afef21710f73860b26893fa18dd32858.tar.zst
Nix-da28a4e2afef21710f73860b26893fa18dd32858.zip
Add environment file instead of hardcoding everything in makefiles
Diffstat (limited to '.envrc')
-rw-r--r--.envrc13
1 files changed, 13 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..6eeaba9
--- /dev/null
+++ b/.envrc
@@ -0,0 +1,13 @@
1# vim: filetype=bash
2export PASSWORD_STORE_DIR=$(expand_path nixops/secrets)
3export NIXOPS_STATE=$(expand_path nixops/state/immaeEu.nixops)
4export NIXOPS_DEPLOYMENT=cef694f3-081d-11e9-b31f-0242ec186adf
5export NIX_PATH=nixpkgs=$(cat $(expand_path nix/sources.json) | jq -r '."nixpkgs-nixops".url')
6
7export NIXOPS_ENV_LOADED=1
8
9PATH_add $(expand_path scripts)
10PATH_add $(expand_path nixops/scripts)
11
12use nix
13watch_file $(expand_path nix/sources.json)