1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2025-01-05 19:03:21 +03:00

mobile-device: Add supportLevel config for docs

This commit is contained in:
Samuel Dionne-Riel 2022-10-21 01:36:14 -04:00
parent d736329bb9
commit 8fedb1afa4
2 changed files with 9 additions and 0 deletions

View File

@ -29,6 +29,7 @@ in
inherit (identity) name manufacturer;
inherit (mobile) hardware;
inherit (mobile) documentation;
inherit (mobile.device) supportLevel;
quirks = {
inherit (mobile.quirks) supportsStage-0;
};

View File

@ -35,6 +35,14 @@ with lib;
firmware bundles will be unredistributable.
'';
};
supportLevel = mkOption {
type = types.enum [ "supported" "best-effort" "vendor" "unsupported" "abandoned" ];
default = "unsupported";
description = ''
Support level for the device.
'';
};
};
config = mkIf (!config.mobile.enable) {