darwin.builder: Fix gratuitous rebuilds

See the discussion starting here:

https://github.com/NixOS/nixpkgs/pull/206951#issuecomment-1364760917

The `darwin.builder` derivation had a gratuitous dependency
on the current Nixpkgs revision due to
`config.system.nixos.revision`.  Setting the revision explicitly
to null fixes this problem and prevents the derivation from being
rebuilt on every change to Nixpkgs.
This commit is contained in:
Gabriella Gonzalez 2022-12-26 20:25:56 -06:00
parent bfb898bc7c
commit 474198f808

View file

@ -93,7 +93,12 @@ in
};
});
system.stateVersion = "22.05";
system = {
# To prevent gratuitous rebuilds on each change to Nixpkgs
nixos.revision = null;
stateVersion = "22.05";
};
users.users."${user}"= {
isNormalUser = true;