Skip to content
Snippets Groups Projects
.envrc 781 B
Newer Older
Volker Schukai's avatar
Volker Schukai committed
if ! has nix_direnv_version || ! nix_direnv_version 2.2.1; then
  source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/2.2.1/direnvrc" "sha256-zelF0vLbEl5uaqrfIzbgNzJWGmLzCmYAkInj/LNxvKs="
fi
Volker Schukai's avatar
Volker Schukai committed
nix_direnv_watch_file devenv.nix
nix_direnv_watch_file system/scripts/*.nix
nix_direnv_watch_file system/config/*.nix
nix_direnv_watch_file project.nix
nix_direnv_watch_file devenv.lock
nix_direnv_watch_file devenv.yaml
Volker Schukai's avatar
Volker Schukai committed
nix_direnv_watch_file flake.nix
nix_direnv_watch_file flake.lock
Volker Schukai's avatar
Volker Schukai committed
if ! use flake . --impure --show-trace 
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
Volker Schukai's avatar
Volker Schukai committed
updateCommand="update-files"
if type "$command" &>/dev/null; then 
    $command 
fi