diff options
author | lassulus <lassulus@lassul.us> | 2019-05-26 09:20:12 +0200 |
---|---|---|
committer | Lassulus <github@lassul.us> | 2019-05-29 07:12:14 +0900 |
commit | ddfb687d5e164c83aee2a55194fc1eac2898f2a2 (patch) | |
tree | 0449de0641dca2ebb3e13b66e72b66719d8bef7e /nixos/modules/services/networking/syncthing.nix | |
parent | d8aee48e778a7d63d3782d389d4c67ba4a9187fb (diff) | |
download | nixpkgs-ddfb687d5e164c83aee2a55194fc1eac2898f2a2.tar nixpkgs-ddfb687d5e164c83aee2a55194fc1eac2898f2a2.tar.gz nixpkgs-ddfb687d5e164c83aee2a55194fc1eac2898f2a2.tar.bz2 nixpkgs-ddfb687d5e164c83aee2a55194fc1eac2898f2a2.tar.lz nixpkgs-ddfb687d5e164c83aee2a55194fc1eac2898f2a2.tar.xz nixpkgs-ddfb687d5e164c83aee2a55194fc1eac2898f2a2.tar.zst nixpkgs-ddfb687d5e164c83aee2a55194fc1eac2898f2a2.zip |
nixos/syncthing: better examples for declarative options
Diffstat (limited to 'nixos/modules/services/networking/syncthing.nix')
-rw-r--r-- | nixos/modules/services/networking/syncthing.nix | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/nixos/modules/services/networking/syncthing.nix b/nixos/modules/services/networking/syncthing.nix index d495703fc53..e011172ffa7 100644 --- a/nixos/modules/services/networking/syncthing.nix +++ b/nixos/modules/services/networking/syncthing.nix @@ -105,13 +105,12 @@ in { description = '' Peers/devices which syncthing should communicate with. ''; - example = [ - { - name = "bigbox"; + example = { + bigbox = { id = "7CFNTQM-IMTJBHJ-3UWRDIU-ZGQJFR6-VCXZ3NB-XUH3KZO-N52ITXR-LAIYUAU"; addresses = [ "tcp://192.168.0.10:51820" ]; - } - ]; + }; + }; type = types.attrsOf (types.submodule ({ config, ... }: { options = { @@ -169,6 +168,12 @@ in { description = '' folders which should be shared by syncthing. ''; + example = { + "/home/user/sync" = { + id = "syncme"; + devices = [ "bigbox" ]; + }; + }; type = types.attrsOf (types.submodule ({ config, ... }: { options = { |