summary refs log tree commit diff
path: root/nixos/modules/services/networking
diff options
context:
space:
mode:
authorIngolf Wagner <palo@pepe>2018-10-14 06:46:36 +0200
committerIngolf Wagner <palo@pepe>2018-10-14 06:46:42 +0200
commitd2e1dd7fc715c675f2ba774a5b6174860d2a2b41 (patch)
tree2711efde8b90eeeedf1809c37746d04275f4a395 /nixos/modules/services/networking
parentfa6c8ec2a7fc71f05c2687f3e6411eae34831fdf (diff)
downloadnixlib-d2e1dd7fc715c675f2ba774a5b6174860d2a2b41.tar
nixlib-d2e1dd7fc715c675f2ba774a5b6174860d2a2b41.tar.gz
nixlib-d2e1dd7fc715c675f2ba774a5b6174860d2a2b41.tar.bz2
nixlib-d2e1dd7fc715c675f2ba774a5b6174860d2a2b41.tar.lz
nixlib-d2e1dd7fc715c675f2ba774a5b6174860d2a2b41.tar.xz
nixlib-d2e1dd7fc715c675f2ba774a5b6174860d2a2b41.tar.zst
nixlib-d2e1dd7fc715c675f2ba774a5b6174860d2a2b41.zip
nixos/modules: services.syncthing use types.str instead of types.string
As Infinisil mentioned in https://github.com/NixOS/nixpkgs/pull/48119#discussion_r224974201
Diffstat (limited to 'nixos/modules/services/networking')
-rw-r--r--nixos/modules/services/networking/syncthing.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix
index cf21aa9eb70f..fd31b2a67687 100644
--- a/nixos/modules/services/networking/syncthing.nix
+++ b/nixos/modules/services/networking/syncthing.nix
@@ -17,7 +17,7 @@ in {
       '';
 
       guiAddress = mkOption {
-        type = types.string;
+        type = types.str;
         default = "127.0.0.1:8384";
         description = ''
           Address to serve the GUI.
@@ -31,7 +31,7 @@ in {
       };
 
       user = mkOption {
-        type = types.string;
+        type = types.str;
         default = defaultUser;
         description = ''
           Syncthing will be run under this user (user will be created if it doesn't exist.
@@ -40,7 +40,7 @@ in {
       };
 
       group = mkOption {
-        type = types.string;
+        type = types.str;
         default = "nogroup";
         description = ''
           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 {
-        type = types.nullOr types.string;
+        type = with types; nullOr str;
         default = null;
         example = "socks5://address.com:1234";
         description = ''