bin/hey: add --option pure-eval no
There are cases where impure evaluate is necessary or unavoidable.
This commit is contained in:
parent
5ceb72ddee
commit
82ee5bef6a
6
bin/hey
6
bin/hey
|
@ -62,7 +62,11 @@ function main {
|
||||||
function _rebuild {
|
function _rebuild {
|
||||||
# Move to $DOTFILES to prevent polluting the system with result links
|
# Move to $DOTFILES to prevent polluting the system with result links
|
||||||
pushd $DOTFILES >/dev/null
|
pushd $DOTFILES >/dev/null
|
||||||
_do sudo nixos-rebuild --flake ".#${HOSTNAME:-$HOST}" ${@:-build}
|
# REVIEW Use --impure instead when it's in a stable release of nix
|
||||||
|
_do sudo nixos-rebuild \
|
||||||
|
--flake "${DOTFILES}#${HOSTNAME:-$HOST}" \
|
||||||
|
--option pure-eval no \
|
||||||
|
${@:-build}
|
||||||
popd >/dev/null
|
popd >/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue