blob: 29b20cdb603c38e51e27afe4a5c28aaae0ed60d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/usr/bin/env bash
set -euo pipefail
# This will be supported in the future
export NIX_USER_CONF_FILES=$PWD/etc/nix.conf
if nix flake info &>/dev/null; then
# Flake!
watch_file flake.lock
watch_file flake.nix
eval "$(nix print-dev-env)"
else
use_nix
fi
|