2018-06-17 02:21:41 +03:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
2020-05-24 09:37:48 +03:00
|
|
|
options.mobile.device = {
|
|
|
|
name = mkOption {
|
2018-06-17 02:21:41 +03:00
|
|
|
type = types.str;
|
2020-05-24 00:28:36 +03:00
|
|
|
description = "The device's codename. Must match the device folder.";
|
2018-06-17 02:21:41 +03:00
|
|
|
};
|
2020-05-24 09:37:48 +03:00
|
|
|
|
|
|
|
info.kernel = mkOption {
|
|
|
|
# FIXME: drop this option
|
|
|
|
# This is only kept *currently* for the commit to still build.
|
|
|
|
# This will be dealt with in the coming commits.
|
|
|
|
internal = true;
|
2018-06-17 02:21:41 +03:00
|
|
|
};
|
2020-05-24 09:37:48 +03:00
|
|
|
|
|
|
|
identity = {
|
2020-05-24 00:28:36 +03:00
|
|
|
name = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
description = "The device's name as advertised by the manufacturer.";
|
|
|
|
};
|
|
|
|
manufacturer = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
description = "The device's manufacturer name.";
|
|
|
|
};
|
|
|
|
};
|
2018-06-17 02:21:41 +03:00
|
|
|
};
|
|
|
|
}
|