2023-05-16 16:26:57 +00:00
|
|
|
#! /bin/sh
|
|
|
|
|
|
|
|
source "$(
|
|
|
|
nix eval \
|
|
|
|
--no-update-lock-file \
|
|
|
|
--no-write-lock-file \
|
|
|
|
--no-warn-dirty \
|
|
|
|
--accept-flake-config \
|
|
|
|
.#__std.direnv_lib 2>/dev/null \
|
|
|
|
|| nix eval .#__std.direnv_lib # show the errors
|
|
|
|
)"
|
|
|
|
# FIXME: This should check if $USER is in userShells, if not,
|
|
|
|
# fall back to `use nix`
|
|
|
|
use std nix "//repo/userShells:${USER}"
|
|
|
|
|
2022-12-25 09:55:30 +00:00
|
|
|
|