nixos-rebuild: always set flakeFlags
Otherwise a rebuild can fail when a flake is autodetected in /etc/nixos/flake.nix and the system doesn't have flakes globally enabled.
This commit is contained in:
parent
2a93ea177c
commit
28dae620b2
|
@ -20,7 +20,7 @@ origArgs=("$@")
|
||||||
copyClosureFlags=()
|
copyClosureFlags=()
|
||||||
extraBuildFlags=()
|
extraBuildFlags=()
|
||||||
lockFlags=()
|
lockFlags=()
|
||||||
flakeFlags=()
|
flakeFlags=(--extra-experimental-features 'nix-command flakes')
|
||||||
action=
|
action=
|
||||||
buildNix=1
|
buildNix=1
|
||||||
fast=
|
fast=
|
||||||
|
@ -120,7 +120,6 @@ while [ "$#" -gt 0 ]; do
|
||||||
;;
|
;;
|
||||||
--flake)
|
--flake)
|
||||||
flake="$1"
|
flake="$1"
|
||||||
flakeFlags=(--extra-experimental-features 'nix-command flakes')
|
|
||||||
shift 1
|
shift 1
|
||||||
;;
|
;;
|
||||||
--no-flake)
|
--no-flake)
|
||||||
|
|
Loading…
Reference in a new issue