nixos-rebuild: Fix repl with channels

This commit is contained in:
MrQubo
2024-08-06 13:40:52 +02:00
parent fb89aa5757
commit a14312cbed
@@ -592,7 +592,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