aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-08-10 14:20:37 -0700
committerFranck Cuny <franck@fcuny.net>2025-08-10 14:20:37 -0700
commitaf90d2b71c098eacd173f87304f79b02e52cb921 (patch)
treec1e253f26fb49f3f43e68471f9ff3f3b47a2d573
parentdon't ignore .envrc file with git (diff)
downloadinfra-af90d2b71c098eacd173f87304f79b02e52cb921.tar.gz
update a few .envrc
-rw-r--r--.envrc3
-rw-r--r--infra/tf/.envrc12
2 files changed, 15 insertions, 0 deletions
diff --git a/.envrc b/.envrc
index f70c487..91d631a 100644
--- a/.envrc
+++ b/.envrc
@@ -1,2 +1,5 @@
use flake
watch_file nix/
+
+watch_file flake/*.nix
+watch_file scripts/*.nix
diff --git a/infra/tf/.envrc b/infra/tf/.envrc
new file mode 100644
index 0000000..dd49577
--- /dev/null
+++ b/infra/tf/.envrc
@@ -0,0 +1,12 @@
+# shellcheck shell=bash
+use flake .#terraform
+
+watch_file flake-module.nix
+watch_file scripts.nix
+
+source_env_if_exists .envrc.local
+
+if ! use flake . --impure
+then
+ echo "devenv could not be built. The devenv environment was not loaded. Make the necessary changes to devenv.nix and hit enter to try again." >&2
+fi