Commit a14312cb authored by MrQubo's avatar MrQubo
Browse files

nixos-rebuild: Fix repl with channels

parent fb89aa57
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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