mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 13:57:10 +03:00
treewide: stop using types.string
It is an error[1] now. [1]: https://github.com/NixOS/nixpkgs/pull/247848
This commit is contained in:
parent
4e6868b1aa
commit
74fadae942
@ -19,7 +19,7 @@ in
|
||||
'';
|
||||
};
|
||||
quickPhrase = mkOption {
|
||||
type = with types; attrsOf string;
|
||||
type = with types; attrsOf str;
|
||||
default = { };
|
||||
example = literalExpression ''
|
||||
{
|
||||
|
@ -53,7 +53,7 @@ in
|
||||
};
|
||||
|
||||
preferences = mkOption {
|
||||
type = with types; attrsOf (oneOf [ bool int string ]);
|
||||
type = with types; attrsOf (oneOf [ bool int str ]);
|
||||
default = { };
|
||||
description = mdDoc ''
|
||||
Preferences to set from `about:config`.
|
||||
|
@ -42,7 +42,7 @@ in
|
||||
};
|
||||
|
||||
args = mkOption {
|
||||
type = types.listOf types.string;
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
example = [ "--rt" "--prefer-vk-device 8086:9bc4" ];
|
||||
description = mdDoc ''
|
||||
@ -51,7 +51,7 @@ in
|
||||
};
|
||||
|
||||
env = mkOption {
|
||||
type = types.attrsOf types.string;
|
||||
type = types.attrsOf types.str;
|
||||
default = { };
|
||||
example = literalExpression ''
|
||||
# for Prime render offload on Nvidia laptops.
|
||||
|
@ -89,7 +89,7 @@ in {
|
||||
options = {
|
||||
enable = mkEnableOption (mdDoc "GameScope Session");
|
||||
args = mkOption {
|
||||
type = types.listOf types.string;
|
||||
type = types.listOf types.str;
|
||||
default = [ ];
|
||||
description = mdDoc ''
|
||||
Arguments to be passed to GameScope for the session.
|
||||
@ -97,7 +97,7 @@ in {
|
||||
};
|
||||
|
||||
env = mkOption {
|
||||
type = types.attrsOf types.string;
|
||||
type = types.attrsOf types.str;
|
||||
default = { };
|
||||
description = mdDoc ''
|
||||
Environmental variables to be passed to GameScope for the session.
|
||||
|
@ -86,7 +86,7 @@ in {
|
||||
};
|
||||
|
||||
ifpAllowedUids = mkOption {
|
||||
type = types.listOf types.string;
|
||||
type = types.listOf types.str;
|
||||
default = ["root"];
|
||||
description = lib.mdDoc "A list of users allowed to access the ifp dbus interface.";
|
||||
};
|
||||
|
@ -934,7 +934,7 @@ in
|
||||
};
|
||||
authserver = mkOption {
|
||||
default = null;
|
||||
type = with types; nullOr string;
|
||||
type = with types; nullOr str;
|
||||
description = lib.mdDoc ''
|
||||
This controls the hostname for the 9front authentication server
|
||||
that users will be authenticated against.
|
||||
|
@ -105,7 +105,7 @@ in
|
||||
};
|
||||
|
||||
otherNodesIps = mkOption {
|
||||
type = types.listOf types.string;
|
||||
type = types.listOf types.str;
|
||||
example = [ "192.168.1.2" "192.168.1.3" ];
|
||||
description = mdDoc ''
|
||||
IP addresses of the other nodes.
|
||||
|
@ -7,7 +7,7 @@ let
|
||||
keyboardOptions = { ... }: {
|
||||
options = {
|
||||
ids = mkOption {
|
||||
type = types.listOf types.string;
|
||||
type = types.listOf types.str;
|
||||
default = [ "*" ];
|
||||
example = [ "*" "-0123:0456" ];
|
||||
description = lib.mdDoc ''
|
||||
|
@ -142,7 +142,7 @@ in {
|
||||
|
||||
user = mkOption {
|
||||
default = "maddy";
|
||||
type = with types; uniq string;
|
||||
type = with types; uniq str;
|
||||
description = lib.mdDoc ''
|
||||
User account under which maddy runs.
|
||||
|
||||
@ -156,7 +156,7 @@ in {
|
||||
|
||||
group = mkOption {
|
||||
default = "maddy";
|
||||
type = with types; uniq string;
|
||||
type = with types; uniq str;
|
||||
description = lib.mdDoc ''
|
||||
Group account under which maddy runs.
|
||||
|
||||
@ -170,7 +170,7 @@ in {
|
||||
|
||||
hostname = mkOption {
|
||||
default = "localhost";
|
||||
type = with types; uniq string;
|
||||
type = with types; uniq str;
|
||||
example = ''example.com'';
|
||||
description = lib.mdDoc ''
|
||||
Hostname to use. It should be FQDN.
|
||||
@ -179,7 +179,7 @@ in {
|
||||
|
||||
primaryDomain = mkOption {
|
||||
default = "localhost";
|
||||
type = with types; uniq string;
|
||||
type = with types; uniq str;
|
||||
example = ''mail.example.com'';
|
||||
description = lib.mdDoc ''
|
||||
Primary MX domain to use. It should be FQDN.
|
||||
|
Loading…
Reference in New Issue
Block a user