Unverified Commit b825f65c authored by r-vdp's avatar r-vdp
Browse files

nixos/nix-channel: only try to remove the nix-channel binary if it exists

It may not be there if `system.disableInstallerTools = true`.
parent 668e2daf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ in
      '';

    environment.extraSetup = mkIf (!cfg.channel.enable) ''
      rm $out/bin/nix-channel
      rm --force $out/bin/nix-channel
    '';

    # NIX_PATH has a non-empty default according to Nix docs, so we don't unset