system-type/depthcharge: system.build -> mobile.outputs
@@ -11,7 +11,7 @@ let
inherit (config.mobile.system.depthcharge.kpart) dtbs;
device_name = config.mobile.device.name;
inherit (config.mobile.outputs) initrd;
- system = config.system.build.rootfs;
+ system = config.mobile.outputs.generatedFilesystems.rootfs;
cmdline = lib.concatStringsSep " " config.boot.kernelParams;
kernel = kernel.package;
arch = lib.strings.removeSuffix "-linux" config.mobile.system.system;
@@ -29,15 +29,35 @@ in
};
};
};
+ mobile = {
+ outputs = {
+ depthcharge = {
+ disk-image = lib.mkOption {
+ type = types.package;
+ description = ''
+ Full Mobile NixOS disk image for a depthcharge-based system.
+ '';
+ };
+ kpart = lib.mkOption {
+ type = types.package;
+ description = ''
+ Kernel partition for a depthcharge-based system.
+ '';
+ };
+ };
+ };
+ };
};
config = lib.mkMerge [
{ mobile.system.types = [ "depthcharge" ]; }
(lib.mkIf enabled {
- system.build = {
- inherit (build) disk-image kpart;
+ mobile.outputs = {
default = build.disk-image;
+ depthcharge = {
+ inherit (build) disk-image kpart;
+ };
};
})
];
