Skip to content

Commit f16f15a

Browse files
weltekiMic92
andauthored
run nix commands with appropriate flags
Co-authored-by: Jörg Thalheim <[email protected]>
1 parent 99c6360 commit f16f15a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bin/nixos-shell

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ while [[ $# -gt 0 ]]; do
2929
--flake)
3030
flake="$(echo "$1" | awk -F '#' '{ print $1; }')"
3131

32-
flake_uri="$(nix flake metadata --json -- "$flake" | jq -r .url)"
32+
flake_uri="$(nix flake metadata --extra-experimental-features "nix-command flakes" --json -- "$flake" | jq -r .url)"
3333
flake_attr="$(echo "$1" | awk -F'#' '{ print $2; }')"
3434
shift
3535
;;
@@ -65,6 +65,7 @@ if [[ -z "$flake_uri" ]]; then
6565
)
6666
else
6767
extraBuildFlags+=(
68+
--extra-experimental-features "flakes"
6869
--argstr flakeUri "$flake_uri"
6970
--argstr flakeAttr "${flake_attr:-"vm"}"
7071
)

0 commit comments

Comments
 (0)