treewide: stop using types.string

It is an error[1] now.

[1]: https://github.com/NixOS/nixpkgs/pull/247848
This commit is contained in:
Lin Jian 2023-08-08 20:45:53 +08:00
parent 4e6868b1aa
commit 74fadae942
No known key found for this signature in database
GPG Key ID: A6698D36434F75A5
9 changed files with 14 additions and 14 deletions

View File

@ -19,7 +19,7 @@ in
''; '';
}; };
quickPhrase = mkOption { quickPhrase = mkOption {
type = with types; attrsOf string; type = with types; attrsOf str;
default = { }; default = { };
example = literalExpression '' example = literalExpression ''
{ {

View File

@ -53,7 +53,7 @@ in
}; };
preferences = mkOption { preferences = mkOption {
type = with types; attrsOf (oneOf [ bool int string ]); type = with types; attrsOf (oneOf [ bool int str ]);
default = { }; default = { };
description = mdDoc '' description = mdDoc ''
Preferences to set from `about:config`. Preferences to set from `about:config`.

View File

@ -42,7 +42,7 @@ in
}; };
args = mkOption { args = mkOption {
type = types.listOf types.string; type = types.listOf types.str;
default = [ ]; default = [ ];
example = [ "--rt" "--prefer-vk-device 8086:9bc4" ]; example = [ "--rt" "--prefer-vk-device 8086:9bc4" ];
description = mdDoc '' description = mdDoc ''
@ -51,7 +51,7 @@ in
}; };
env = mkOption { env = mkOption {
type = types.attrsOf types.string; type = types.attrsOf types.str;
default = { }; default = { };
example = literalExpression '' example = literalExpression ''
# for Prime render offload on Nvidia laptops. # for Prime render offload on Nvidia laptops.

View File

@ -89,7 +89,7 @@ in {
options = { options = {
enable = mkEnableOption (mdDoc "GameScope Session"); enable = mkEnableOption (mdDoc "GameScope Session");
args = mkOption { args = mkOption {
type = types.listOf types.string; type = types.listOf types.str;
default = [ ]; default = [ ];
description = mdDoc '' description = mdDoc ''
Arguments to be passed to GameScope for the session. Arguments to be passed to GameScope for the session.
@ -97,7 +97,7 @@ in {
}; };
env = mkOption { env = mkOption {
type = types.attrsOf types.string; type = types.attrsOf types.str;
default = { }; default = { };
description = mdDoc '' description = mdDoc ''
Environmental variables to be passed to GameScope for the session. Environmental variables to be passed to GameScope for the session.

View File

@ -86,7 +86,7 @@ in {
}; };
ifpAllowedUids = mkOption { ifpAllowedUids = mkOption {
type = types.listOf types.string; type = types.listOf types.str;
default = ["root"]; default = ["root"];
description = lib.mdDoc "A list of users allowed to access the ifp dbus interface."; description = lib.mdDoc "A list of users allowed to access the ifp dbus interface.";
}; };

View File

@ -934,7 +934,7 @@ in
}; };
authserver = mkOption { authserver = mkOption {
default = null; default = null;
type = with types; nullOr string; type = with types; nullOr str;
description = lib.mdDoc '' description = lib.mdDoc ''
This controls the hostname for the 9front authentication server This controls the hostname for the 9front authentication server
that users will be authenticated against. that users will be authenticated against.

View File

@ -105,7 +105,7 @@ in
}; };
otherNodesIps = mkOption { otherNodesIps = mkOption {
type = types.listOf types.string; type = types.listOf types.str;
example = [ "192.168.1.2" "192.168.1.3" ]; example = [ "192.168.1.2" "192.168.1.3" ];
description = mdDoc '' description = mdDoc ''
IP addresses of the other nodes. IP addresses of the other nodes.

View File

@ -7,7 +7,7 @@ let
keyboardOptions = { ... }: { keyboardOptions = { ... }: {
options = { options = {
ids = mkOption { ids = mkOption {
type = types.listOf types.string; type = types.listOf types.str;
default = [ "*" ]; default = [ "*" ];
example = [ "*" "-0123:0456" ]; example = [ "*" "-0123:0456" ];
description = lib.mdDoc '' description = lib.mdDoc ''

View File

@ -142,7 +142,7 @@ in {
user = mkOption { user = mkOption {
default = "maddy"; default = "maddy";
type = with types; uniq string; type = with types; uniq str;
description = lib.mdDoc '' description = lib.mdDoc ''
User account under which maddy runs. User account under which maddy runs.
@ -156,7 +156,7 @@ in {
group = mkOption { group = mkOption {
default = "maddy"; default = "maddy";
type = with types; uniq string; type = with types; uniq str;
description = lib.mdDoc '' description = lib.mdDoc ''
Group account under which maddy runs. Group account under which maddy runs.
@ -170,7 +170,7 @@ in {
hostname = mkOption { hostname = mkOption {
default = "localhost"; default = "localhost";
type = with types; uniq string; type = with types; uniq str;
example = ''example.com''; example = ''example.com'';
description = lib.mdDoc '' description = lib.mdDoc ''
Hostname to use. It should be FQDN. Hostname to use. It should be FQDN.
@ -179,7 +179,7 @@ in {
primaryDomain = mkOption { primaryDomain = mkOption {
default = "localhost"; default = "localhost";
type = with types; uniq string; type = with types; uniq str;
example = ''mail.example.com''; example = ''mail.example.com'';
description = lib.mdDoc '' description = lib.mdDoc ''
Primary MX domain to use. It should be FQDN. Primary MX domain to use. It should be FQDN.