serokell / deploy-rs

A simple multi-profile Nix-flake deploy tool.
Other
1.41k stars 101 forks source link

Suggestion: cache result of configuration checks #303

Open StoicDeveloper opened 1 week ago

StoicDeveloper commented 1 week ago

When deploying all profiles within a flake, I've noticed that a long time can be spent checking the various nixos configurations. The tool nixos-rebuild will cache failures, and not attempt rebuilding a configuration if it has not been changed since the last build failure. Would it be possible to do something similar with deploy-rs? Currently I use --skip-checks a lot when deploying small changes, since running the checks takes an unfeasible amount of time, even when large parts of the config have no changes, such that their validity is guaranteed.