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:
parent
eb0772e8cb
commit
f40c8c1f08
@ -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.
|
||||
'';
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
@ -18,7 +18,7 @@ in
|
||||
'';
|
||||
};
|
||||
console = mkOption {
|
||||
type = types.string;
|
||||
type = types.str;
|
||||
default = "console";
|
||||
description = ''
|
||||
Selects the /dev/___ device to use.
|
||||
|
@ -18,7 +18,7 @@ in
|
||||
'';
|
||||
};
|
||||
features = mkOption {
|
||||
type = types.listOf types.string;
|
||||
type = types.listOf types.str;
|
||||
default = [];
|
||||
description = ''
|
||||
`android_usb` features to enable.
|
||||
|
Loading…
Reference in New Issue
Block a user