1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-27 01:44:41 +03:00

modules: use types.str over types.string...

types.string having been formally deprecated, and having a likely
unwanted behaviour.
This commit is contained in:
Samuel Dionne-Riel 2019-09-12 22:23:13 -04:00
parent eb0772e8cb
commit f40c8c1f08
7 changed files with 10 additions and 10 deletions

View File

@ -9,7 +9,7 @@ in
options.mobile.hardware = {
soc = mkOption {
# This is used to enable a specific SOC on a device, while giving it a name.
type = types.string;
type = types.str;
description = ''
Give the SOC name for the device.
'';

View File

@ -17,7 +17,7 @@ in
'';
};
initialization = mkOption {
type = types.string;
type = types.str;
default = ''
[ -e "/sys/class/graphics/fb0/modes" ] || return
[ -z "$(cat /sys/class/graphics/fb0/mode)" ] || return

View File

@ -27,7 +27,7 @@ in
'';
};
modules = mkOption {
type = types.listOf types.string;
type = types.listOf types.str;
default = [
];
description = ''
@ -36,7 +36,7 @@ in
'';
};
additional_modules = mkOption {
type = types.listOf types.string;
type = types.listOf types.str;
default = [
];
description = ''
@ -45,7 +45,7 @@ in
'';
};
firmwares = mkOption {
type = types.listOf types.string;
type = types.listOf types.str;
default = [];
description = ''
Firmwares to add to the cloure.

View File

@ -24,7 +24,7 @@ in
'';
};
targets = mkOption {
type = types.listOf types.string;
type = types.listOf types.str;
description = ''
Where the init process logs are redirected to.

View File

@ -19,14 +19,14 @@ in
'';
};
IP = mkOption {
type = types.string;
type = types.str;
default = "172.16.42.1";
description = ''
IP address for the USB networking gadget.
'';
};
hostIP = mkOption {
type = types.string;
type = types.str;
default = "172.16.42.2";
description = ''
IP address for the USB networking gadget.

View File

@ -18,7 +18,7 @@ in
'';
};
console = mkOption {
type = types.string;
type = types.str;
default = "console";
description = ''
Selects the /dev/___ device to use.

View File

@ -18,7 +18,7 @@ in
'';
};
features = mkOption {
type = types.listOf types.string;
type = types.listOf types.str;
default = [];
description = ''
`android_usb` features to enable.