Greetings,
my Laptop, which is a production machine I heavily rely on, is configured to update automatically on a daily basis (at 17:00). Yesterday, for the first time, the update triggered an unexpected local build which took 11h (and several dozens GiB of local disk space). Luckily, it was Friday afternoon so my work wasn’t affected.
Now I have two questions:
- Is there a way to prevent local builds during auto updates and use only packages that are available in the binary cache (something like
--force-cached-only
)? I can’t afford updates to affect my daily work. (For the time being, I changed my config to
system.autoUpgrade.dates = "Saturday 09:00";
to make sure that doesn’t happen in the future. But I would prefer to get updates more regularly. Besides, I would also like to avoid the machine compiling the whole Saturday.) - I don’t even know which package(s) caused the local build, are there any log files I could inspect?
For the record, in my system flake.nix
the inputs look like this
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.11";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager/release-23.11";
inputs.nixpkgs.follows = "nixpkgs";
};
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
};
The unstable branch is only used to pull the latest versions of 1Password and Spotify.
Thanks in advance for your help!