kronos/.envrc

21 lines
690 B
Text
Raw Permalink Normal View History

2026-03-15 17:21:35 +01:00
#!/usr/bin/env bash
# Install nix_direnv for better caching and handling of nix configuration
if ! has nix_direnv_version || ! nix_direnv_version 3.0.5; then
source_url "https://raw.githubusercontent.com/nix-community/nix-direnv/3.0.5/direnvrc" "sha256-RuwIS+QKFj/T9M2TFXScjBsLR6V3A17YVoEW/Q6AZ1w="
fi
watch_file nix/*.nix
# shell.nix allows using devenv on nix systems that don't have devenv installed
use nix
export DIRENV_WARN_TIMEOUT=30s
2026-03-15 17:21:35 +01:00
eval "$(devenv direnvrc)"
# `use devenv` supports the same options as the `devenv shell` command.
#
# To silence all output, use `--quiet`.
#
# Example usage: use devenv --quiet --impure --option services.postgres.enable:bool true
use devenv