I am using nixops and want to reduce disk space consumption by sharing nix store among instances.
/nix/storestore through elastic file system.
- make cron job on random machine inside network that runs
nix-collect-garbage -d. This will remove all packages that are not linked with first machine: actually stale packages and packages of other machines inside network. To restore them first machine triggers
nixos-rebuild switchon other machines inside network.
Can this be done better/does this make sense?