profiles/minimal.nix
module forces big rebuilds of packages
#319102
Labels
profiles/minimal.nix
module forces big rebuilds of packages
#319102
Describe the bug
Importing the
profiles/minimal.nix
module forces some packages to be built locally because their derivations change. For some of these packages the build process is very resource consuming, hence not feasible for small machines, which are one of the targets of theprofiles/minimal.nix
module.Additional context
Here's an example: I have a router with low resources (4GB of RAM and a 2GB swap file) running NixOS under nixpkgs
release-24.05
, on which I enabled the Kea DHCP server. I have theprofiles/minimal.nix
module imported, and building my configuration locally results in the machine crashing as it runs out of memory. This happens because NixOS tries to build Kea locally, as it needs a version that is not cached:When I disable the
profiles/minimal.nix
module, NixOS correctly fetches Kea from the cachix instance:This version is indeed the one that's cached:
Here's the result of comparing the two derivations with
nix-diff
: I don't understand all the differences but for instance one of them is the flag--without-x
which is enabled because the minimal profile disables X.Steps To Reproduce
Build a NixOS configuration with Kea enabled and the
profiles/minimal.nix
module imported.Expected behavior
While it is expected that the derivations differ, small machines shouldn't have to build these kinds of big packages locally, so I would expect that packages built with the minimal profile imported be cached as well. Unless I'm mistaken and the point of this minimal profile isn't to be used on small machines ? In that case I feel like this should be documented here for instance.
Notify maintainers
Not sure who to notify here, @SuperSandro2000 perhaps ? Sorry for the noise.
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: