-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 DIRENV_FLAKE_DONT_ADD_SOURCES_ROOT=y
+nix_direnv_watch_file() {
+ nix_watches+=("$@")
+ filtered=()
+ for i in "$@"; do
+ case "$i" in
+ */flake.lock)
+ ;;
+ *)
+ filtered+=("$i")
+ esac
+ done
+ watch_file "${filtered[@]}"
+}