aboutsummaryrefslogtreecommitdiff
path: root/.envrc
blob: 4718a18d217614ff29d457baef735fe6ef0c5e51 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# vim: filetype=bash
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[@]}"
}

if nix eval './deploy#sops-vars-file' 2>/dev/null >/dev/null; then
  export DEVSHELL_NO_MOTD=1
  cd deploy
  use flake . --no-warn-dirty
  cd ..
  unset DEVSHELL_NO_MOTD
fi

use flake . --no-warn-dirty