mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
nixos/syncthing: better examples for declarative options
This commit is contained in:
parent
d8aee48e77
commit
ddfb687d5e
@ -105,13 +105,12 @@ in {
|
|||||||
description = ''
|
description = ''
|
||||||
Peers/devices which syncthing should communicate with.
|
Peers/devices which syncthing should communicate with.
|
||||||
'';
|
'';
|
||||||
example = [
|
example = {
|
||||||
{
|
bigbox = {
|
||||||
name = "bigbox";
|
|
||||||
id = "7CFNTQM-IMTJBHJ-3UWRDIU-ZGQJFR6-VCXZ3NB-XUH3KZO-N52ITXR-LAIYUAU";
|
id = "7CFNTQM-IMTJBHJ-3UWRDIU-ZGQJFR6-VCXZ3NB-XUH3KZO-N52ITXR-LAIYUAU";
|
||||||
addresses = [ "tcp://192.168.0.10:51820" ];
|
addresses = [ "tcp://192.168.0.10:51820" ];
|
||||||
}
|
};
|
||||||
];
|
};
|
||||||
type = types.attrsOf (types.submodule ({ config, ... }: {
|
type = types.attrsOf (types.submodule ({ config, ... }: {
|
||||||
options = {
|
options = {
|
||||||
|
|
||||||
@ -169,6 +168,12 @@ in {
|
|||||||
description = ''
|
description = ''
|
||||||
folders which should be shared by syncthing.
|
folders which should be shared by syncthing.
|
||||||
'';
|
'';
|
||||||
|
example = {
|
||||||
|
"/home/user/sync" = {
|
||||||
|
id = "syncme";
|
||||||
|
devices = [ "bigbox" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
type = types.attrsOf (types.submodule ({ config, ... }: {
|
type = types.attrsOf (types.submodule ({ config, ... }: {
|
||||||
options = {
|
options = {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user