nixos-rebuild: Fix repl with channels (#332705)

This commit is contained in:
Aleksana
2024-09-06 23:07:25 +08:00
committed by GitHub
@@ -588,7 +588,7 @@ if [ "$action" = repl ]; then
if [[ -z $buildingAttribute ]]; then
exec nix repl --file $buildFile $attr "${extraBuildFlags[@]}"
elif [[ -z $flake ]]; then
exec nix repl '<nixpkgs/nixos>' "${extraBuildFlags[@]}"
exec nix repl --file '<nixpkgs/nixos>' "${extraBuildFlags[@]}"
else
if [[ -n "${lockFlags[0]}" ]]; then
# nix repl itself does not support locking flags