From 82ee5bef6a878fb189d773ad16647dec7b9b6f8a Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 20 Jan 2021 03:04:23 -0500 Subject: [PATCH] bin/hey: add --option pure-eval no There are cases where impure evaluate is necessary or unavoidable. --- bin/hey | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/hey b/bin/hey index bc69e713..71f5fdc6 100755 --- a/bin/hey +++ b/bin/hey @@ -62,7 +62,11 @@ function main { function _rebuild { # Move to $DOTFILES to prevent polluting the system with result links 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 }