release.nix: Compress demo rootfs
We cannot apply the compression outright on all builds as the image
building infrastructure is not aware of compressed images.
@@ -83,11 +83,12 @@ let
}
;
- specialConfig = {name, buildingForSystem, system}: {
+ specialConfig = {name, buildingForSystem, system, config ? {}}: {
special = true;
inherit name;
- config = {
- mobile._internal.compressLargeArtifacts = inNixOSHydra;
+ config = lib.mkMerge [
+ config
+ {
mobile.device.info = {};
mobile.system.type = "none";
mobile.hardware.soc = {
@@ -96,7 +97,8 @@ let
armv7l-linux = "generic-armv7l";
}.${buildingForSystem};
nixpkgs.localSystem = knownSystems.${system};
- };
+ }
+ ];
};
# Given a system builds run on, this will return a set of further systems
@@ -134,6 +136,9 @@ let
name = "aarch64-linux";
buildingForSystem = "aarch64-linux";
system = "aarch64-linux";
+ config = {
+ mobile._internal.compressLargeArtifacts = inNixOSHydra;
+ };
});
in
import ./examples/demo { inherit device; };
