nixos-rebuild: Pass flakes flags when doing local flakes build

(cherry picked from commit 1c80856545fd1234ba84b8981d26ca8e786376c2)
This commit is contained in:
Chuck 2021-06-10 10:27:14 -07:00 committed by github-actions[bot]
parent 2311321709
commit c764b9f946
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ nixBuild() {
nixFlakeBuild() {
if [ -z "$buildHost" ]; then
nix build "$@" --out-link "${tmpDir}/result"
nix "${flakeFlags[@]}" build "$@" --out-link "${tmpDir}/result"
readlink -f "${tmpDir}/result"
else
local attr="$1"