iso: add back complete host profile to the nix store

This ensures that all builds of activated profiles are included into
the iso cache and don't require rebuilding within the live installer
environment.
This commit is contained in:
David Arnold 2021-03-18 15:58:01 -05:00 committed by "David Arnold"
parent 435847823f
commit 007447652b
No known key found for this signature in database
GPG key ID: 6D6A936E69C59D08

View file

@ -7,6 +7,8 @@ lib.nixosSystem (args // {
moduleList = builtins.attrValues modules;
modpath = "nixos/modules";
fullHostConfig = (lib.nixosSystem (args // { modules = moduleList; })).config;
isoConfig = (lib.nixosSystem
(args // {
modules = moduleList ++ [
@ -27,6 +29,9 @@ lib.nixosSystem (args // {
}];
isoImage.storeContents = [
self.devShell.${config.nixpkgs.system}
# include also closures that are "switched off" by the
# above profile filter on the local config attribute
fullHostConfig.system.build.toplevel
];
# confilcts with networking.wireless which might be slightly