1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-26 01:13:37 +03:00

Adds back depthcharge

This commit is contained in:
Samuel Dionne-Riel 2019-09-21 22:41:57 -04:00
parent b8c4bcda18
commit 507805e9f2
2 changed files with 26 additions and 0 deletions

View File

@ -12,6 +12,7 @@ in
{
imports = [
../systems/rootfs.nix
./system-types/depthcharge.nix
./system-types/kernel-initrd.nix
];

View File

@ -0,0 +1,25 @@
{ config, pkgs, lib, ... }:
let
device_config = config.mobile.device;
enabled = config.mobile.system.type == "depthcharge";
disk-image = pkgs.callPackage ../../systems/depthcharge {
inherit device_config;
initrd = config.system.build.initrd;
system = config.system.build.rootfs;
};
in
{
config = lib.mkMerge [
{ mobile.system.types = [ "depthcharge" ]; }
(lib.mkIf enabled {
system.build = {
inherit disk-image;
# installer shortcut; it's a depthcharge disk-image build.
mobile-installer = disk-image;
};
})
];
}