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:
parent
b8c4bcda18
commit
507805e9f2
@ -12,6 +12,7 @@ in
|
||||
{
|
||||
imports = [
|
||||
../systems/rootfs.nix
|
||||
./system-types/depthcharge.nix
|
||||
./system-types/kernel-initrd.nix
|
||||
];
|
||||
|
||||
|
25
modules/system-types/depthcharge.nix
Normal file
25
modules/system-types/depthcharge.nix
Normal 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;
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
Loading…
Reference in New Issue
Block a user