# How can I speed up \`nixos-rebuild switch\`?

**URL:** https://discourse.nixos.org/t/how-can-i-speed-up-nixos-rebuild-switch/65775
**Category:** Help
**Created:** [June 18, 2025, 3:26am UTC](https://discourse.nixos.org/t/how-can-i-speed-up-nixos-rebuild-switch/65775 "2025-06-18T03:26:27Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![nobodyinperson](https://discourse.nixos.org/user_avatar/discourse.nixos.org/nobodyinperson/32/10308_2.png) [@nobodyinperson](https://discourse.nixos.org/u/nobodyinperson)
#### Post date: [June 18, 2025, 4:07am UTC](https://discourse.nixos.org/t/how-can-i-speed-up-nixos-rebuild-switch/65775/2 "2025-06-18T04:07:20Z")

</div>

If you have many inputs, each with their own different version of nixpkgs, it might help to use the [`follows` thing](https://discourse.nixos.org/t/recommendations-for-use-of-flakes-input-follows/17413) to reuse one nixpkgs across inputs. This should reduce eval time.

---

_[View the full topic](https://discourse.nixos.org/t/how-can-i-speed-up-nixos-rebuild-switch/65775)._
