diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-08-29 18:37:54 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2020-08-29 18:37:54 +0200 |
commit | da28a4e2afef21710f73860b26893fa18dd32858 (patch) | |
tree | 3ce951ff67ab7eb8d55fa79415bacaca85896256 /.envrc | |
parent | 1052bfda27ad0607cd4dc5dc91e2d8e8220c30c7 (diff) | |
download | Nix-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-- | .envrc | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ | |||
1 | # vim: filetype=bash | ||
2 | export PASSWORD_STORE_DIR=$(expand_path nixops/secrets) | ||
3 | export NIXOPS_STATE=$(expand_path nixops/state/immaeEu.nixops) | ||
4 | export NIXOPS_DEPLOYMENT=cef694f3-081d-11e9-b31f-0242ec186adf | ||
5 | export NIX_PATH=nixpkgs=$(cat $(expand_path nix/sources.json) | jq -r '."nixpkgs-nixops".url') | ||
6 | |||
7 | export NIXOPS_ENV_LOADED=1 | ||
8 | |||
9 | PATH_add $(expand_path scripts) | ||
10 | PATH_add $(expand_path nixops/scripts) | ||
11 | |||
12 | use nix | ||
13 | watch_file $(expand_path nix/sources.json) | ||