Loading pkgs/by-name/ni/nixos-rebuild-ng/src/nixos_rebuild/__init__.py +3 −0 Original line number Diff line number Diff line Loading @@ -502,6 +502,9 @@ def execute(argv: list[str]) -> None: specialisation=args.specialisation, install_bootloader=args.install_bootloader, ) print_result("Done. The new configuration is", path_to_config) case Action.BUILD: print_result("Done. The new configuration is", path_to_config) case Action.BUILD_VM | Action.BUILD_VM_WITH_BOOTLOADER: # If you get `not-found`, please open an issue vm_path = next(path_to_config.glob("bin/run-*-vm"), "not-found") Loading pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh +6 −0 Original line number Diff line number Diff line Loading @@ -949,7 +949,13 @@ if [[ "$action" = switch || "$action" = boot || "$action" = test || "$action" = if ! targetHostSudoCmd "${cmd[@]}" "$action"; then log "warning: error(s) occurred while switching to the new configuration" exit 1 else echo -n "Done. The new configuration is " >&2 echo "$pathToConfig" fi elif [[ "$action" = build ]]; then echo -n "Done. The new configuration is " >&2 echo "$pathToConfig" fi Loading Loading
pkgs/by-name/ni/nixos-rebuild-ng/src/nixos_rebuild/__init__.py +3 −0 Original line number Diff line number Diff line Loading @@ -502,6 +502,9 @@ def execute(argv: list[str]) -> None: specialisation=args.specialisation, install_bootloader=args.install_bootloader, ) print_result("Done. The new configuration is", path_to_config) case Action.BUILD: print_result("Done. The new configuration is", path_to_config) case Action.BUILD_VM | Action.BUILD_VM_WITH_BOOTLOADER: # If you get `not-found`, please open an issue vm_path = next(path_to_config.glob("bin/run-*-vm"), "not-found") Loading
pkgs/os-specific/linux/nixos-rebuild/nixos-rebuild.sh +6 −0 Original line number Diff line number Diff line Loading @@ -949,7 +949,13 @@ if [[ "$action" = switch || "$action" = boot || "$action" = test || "$action" = if ! targetHostSudoCmd "${cmd[@]}" "$action"; then log "warning: error(s) occurred while switching to the new configuration" exit 1 else echo -n "Done. The new configuration is " >&2 echo "$pathToConfig" fi elif [[ "$action" = build ]]; then echo -n "Done. The new configuration is " >&2 echo "$pathToConfig" fi Loading