Merge pull request #126513 from chkno/flakesFlags

nixos-rebuild: Pass flakes flags when doing local flakes build
This commit is contained in:
Domen Kožar 2021-06-11 00:27:10 +02:00 committed by GitHub
commit 6a1ca229f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -215,7 +215,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"