nixos/modules: services.syncthing use types.str instead of types.string
As Infinisil mentioned in https://github.com/NixOS/nixpkgs/pull/48119#discussion_r224974201
This commit is contained in:
parent
fa6c8ec2a7
commit
d2e1dd7fc7
@ -17,7 +17,7 @@ in {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
guiAddress = mkOption {
|
guiAddress = mkOption {
|
||||||
type = types.string;
|
type = types.str;
|
||||||
default = "127.0.0.1:8384";
|
default = "127.0.0.1:8384";
|
||||||
description = ''
|
description = ''
|
||||||
Address to serve the GUI.
|
Address to serve the GUI.
|
||||||
@ -31,7 +31,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
user = mkOption {
|
user = mkOption {
|
||||||
type = types.string;
|
type = types.str;
|
||||||
default = defaultUser;
|
default = defaultUser;
|
||||||
description = ''
|
description = ''
|
||||||
Syncthing will be run under this user (user will be created if it doesn't exist.
|
Syncthing will be run under this user (user will be created if it doesn't exist.
|
||||||
@ -40,7 +40,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
group = mkOption {
|
group = mkOption {
|
||||||
type = types.string;
|
type = types.str;
|
||||||
default = "nogroup";
|
default = "nogroup";
|
||||||
description = ''
|
description = ''
|
||||||
Syncthing will be run under this group (group will not be created if it doesn't exist.
|
Syncthing will be run under this group (group will not be created if it doesn't exist.
|
||||||
@ -49,7 +49,7 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
all_proxy = mkOption {
|
all_proxy = mkOption {
|
||||||
type = types.nullOr types.string;
|
type = with types; nullOr str;
|
||||||
default = null;
|
default = null;
|
||||||
example = "socks5://address.com:1234";
|
example = "socks5://address.com:1234";
|
||||||
description = ''
|
description = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user