blob: 4718a18d217614ff29d457baef735fe6ef0c5e51 (
plain) (
tree)
|
|
# 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
|