Oops, types.string is deprecated

See https://github.com/NixOS/nixpkgs/pull/66346
master
Inex Code 2021-11-16 13:30:11 +03:00
parent 18d7a56e96
commit b4bc3a4ffc
2 changed files with 16 additions and 16 deletions

View File

@ -20,7 +20,7 @@ in
''; '';
}; };
token = mkOption { token = mkOption {
type = types.string; type = types.str;
description = '' description = ''
SelfPrivacy API token SelfPrivacy API token
''; '';

View File

@ -17,59 +17,59 @@ in
}; };
hostname = mkOption { hostname = mkOption {
description = "The hostname of the server."; description = "The hostname of the server.";
type = types.nullOr types.string; type = types.nullOr types.str;
}; };
domain = mkOption { domain = mkOption {
description = '' description = ''
Domain used by the server Domain used by the server
''; '';
type = types.nullOr types.string; type = types.nullOr types.str;
}; };
username = mkOption { username = mkOption {
description = '' description = ''
Username that was defined at the initial setup process Username that was defined at the initial setup process
''; '';
type = types.nullOr types.string; type = types.nullOr types.str;
}; };
hashedMasterPassword = mkOption { hashedMasterPassword = mkOption {
description = '' description = ''
Hash of the password that was defined at the initial setup process Hash of the password that was defined at the initial setup process
''; '';
type = types.nullOr types.string; type = types.nullOr types.str;
}; };
api = { api = {
token = mkOption { token = mkOption {
description = '' description = ''
API token used to authenticate with the server API token used to authenticate with the server
''; '';
type = types.nullOr types.string; type = types.nullOr types.str;
}; };
}; };
backblaze = { backblaze = {
bucket = mkOption { bucket = mkOption {
description = "Bucket name used for userdata backups"; description = "Bucket name used for userdata backups";
type = types.nullOr types.string; type = types.nullOr types.str;
}; };
accountId = mkOption { accountId = mkOption {
description = "Backblaze B2 Account ID"; description = "Backblaze B2 Account ID";
type = types.nullOr types.string; type = types.nullOr types.str;
}; };
accountKey = mkOption { accountKey = mkOption {
description = "Backblaze B2 Account Key."; description = "Backblaze B2 Account Key.";
type = types.nullOr types.string; type = types.nullOr types.str;
}; };
}; };
cloudflare = { cloudflare = {
apiKey = mkOption { apiKey = mkOption {
description = "Cloudflare API Key."; description = "Cloudflare API Key.";
type = types.nullOr types.string; type = types.nullOr types.str;
}; };
}; };
databasePassword = mkOption { databasePassword = mkOption {
description = '' description = ''
Password for the database Password for the database
''; '';
type = types.nullOr types.string; type = types.nullOr types.str;
}; };
bitwarden = { bitwarden = {
enable = mkOption { enable = mkOption {
@ -92,13 +92,13 @@ in
description = '' description = ''
Password for the nextcloud database Password for the nextcloud database
''; '';
type = types.nullOr types.string; type = types.nullOr types.str;
}; };
adminPassword = mkOption { adminPassword = mkOption {
description = '' description = ''
Password for the nextcloud admin user Password for the nextcloud admin user
''; '';
type = types.nullOr types.string; type = types.nullOr types.str;
}; };
}; };
pleroma = { pleroma = {
@ -123,7 +123,7 @@ in
description = '' description = ''
Password for the restic Password for the restic
''; '';
type = types.nullOr types.string; type = types.nullOr types.str;
}; };
ssh = { ssh = {
enable = mkOption { enable = mkOption {
@ -134,7 +134,7 @@ in
description = '' description = ''
Root SSH Keys Root SSH Keys
''; '';
type = types.nullOr (types.listOf types.string); type = types.nullOr (types.listOf types.str);
}; };
passwordAuthentication = mkOption { passwordAuthentication = mkOption {
description = '' description = ''
@ -148,7 +148,7 @@ in
description = '' description = ''
Timezone used by the server Timezone used by the server
''; '';
type = types.nullOr types.string; type = types.nullOr types.str;
default = "Europe/Uzhgorod"; default = "Europe/Uzhgorod";
}; };
users = mkOption { users = mkOption {