]> git.immae.eu Git - perso/Immae/Config/Nix.git/blobdiff - .envrc
Add environment file instead of hardcoding everything in makefiles
[perso/Immae/Config/Nix.git] / .envrc
diff --git a/.envrc b/.envrc
new file mode 100644 (file)
index 0000000..6eeaba9
--- /dev/null
+++ b/.envrc
@@ -0,0 +1,13 @@
+# vim: filetype=bash
+export PASSWORD_STORE_DIR=$(expand_path nixops/secrets)
+export NIXOPS_STATE=$(expand_path nixops/state/immaeEu.nixops)
+export NIXOPS_DEPLOYMENT=cef694f3-081d-11e9-b31f-0242ec186adf
+export NIX_PATH=nixpkgs=$(cat $(expand_path nix/sources.json) | jq -r '."nixpkgs-nixops".url')
+
+export NIXOPS_ENV_LOADED=1
+
+PATH_add $(expand_path scripts)
+PATH_add $(expand_path nixops/scripts)
+
+use nix
+watch_file $(expand_path nix/sources.json)