nix: use extra-experimental-features instead

If we ever set experimental-features in the machines' configs, this
could break things, so let's guard against that.
This commit is contained in:
Cole Helbling 2022-12-22 09:34:05 -08:00
parent bc70305de9
commit 6d5ad2f34b

View file

@ -60,7 +60,7 @@ impl Operation {
"--no-out-link", "--no-out-link",
"--keep-going", "--keep-going",
"--option", "--option",
"experimental-features", "extra-experimental-features",
"no-url-literals", "no-url-literals",
]); ]);
} }
@ -70,7 +70,7 @@ impl Operation {
"--available", "--available",
"--json", "--json",
"--option", "--option",
"experimental-features", "extra-experimental-features",
"no-url-literals", "no-url-literals",
]); ]);
} }
@ -82,7 +82,7 @@ impl Operation {
"--attr-path", "--attr-path",
"--out-path", "--out-path",
"--option", "--option",
"experimental-features", "extra-experimental-features",
"no-url-literals", "no-url-literals",
]); ]);
} }
@ -95,12 +95,12 @@ impl Operation {
"--strict", "--strict",
"--json", "--json",
"--option", "--option",
"experimental-features", "extra-experimental-features",
"no-url-literals", "no-url-literals",
]); ]);
} }
Operation::Instantiate => { Operation::Instantiate => {
command.args(&["--option", "experimental-features", "no-url-literals"]) command.args(&["--option", "extra-experimental-features", "no-url-literals"]);
} }
_ => (), _ => (),
}; };