diff options
author | Franck Cuny <franck@fcuny.net> | 2022-04-21 19:52:02 -0700 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-04-21 19:52:02 -0700 |
commit | e4c81a1fc74033fbb74ca9efaebcd9112f85a001 (patch) | |
tree | b2a68263c746cda1deffb7797fd6ea88d2311707 | |
parent | syncthing: enable on trusted machines (diff) | |
download | world-e4c81a1fc74033fbb74ca9efaebcd9112f85a001.tar.gz |
syncthing: configure devices and folders
-rw-r--r-- | modules/services/syncthing/default.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules/services/syncthing/default.nix b/modules/services/syncthing/default.nix index ea8c4d6..19f0c62 100644 --- a/modules/services/syncthing/default.nix +++ b/modules/services/syncthing/default.nix @@ -16,6 +16,24 @@ in { dataDir = "/home/fcuny/.local/state/syncthing"; cert = secrets."syncthing/cert".path; key = secrets."syncthing/key".path; + + folders.Sync = { + path = "/home/fcuny/documents"; + devices = attrNames config.services.syncthing.devices; + }; + + devices = { + aptos = { + id = + "JAN5UMH-2FAQQ7S-KLQ2YXM-C7KKK7U-HVHUK7I-CWOZQRM-VLQSO63-ZTP4WAN"; + introducer = false; + }; + tahoe = { + id = + "4Y36C3Y-LUTO6LD-JXNV73B-FLXSTNP-5Q3CSPY-HESHTPH-EDYA54K-WEICJAJ"; + introducer = true; + }; + }; }; }; } |