kronos/.envrc
2026-04-13 10:53:07 +02:00

20 lines
690 B
Bash

#!/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
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