summaryrefslogtreecommitdiff
path: root/hostnix/weebnix
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2023-10-02 03:31:09 -0400
committerJoe Mou <dev@mou.fo>2023-10-02 03:31:09 -0400
commit6bffdd2253d31c2acd3848ee8e77174ac5e0ffea (patch)
tree1601905e815435ec9b94dfe3552fa0babe57145b /hostnix/weebnix
parent2063ea347954833ccfc55dcf2cf2a5e3178cee68 (diff)
Add remaining Syncthing shares
Diffstat (limited to 'hostnix/weebnix')
-rw-r--r--hostnix/weebnix/syncthing.nix104
1 files changed, 92 insertions, 12 deletions
diff --git a/hostnix/weebnix/syncthing.nix b/hostnix/weebnix/syncthing.nix
index 2690e78..b607e16 100644
--- a/hostnix/weebnix/syncthing.nix
+++ b/hostnix/weebnix/syncthing.nix
@@ -1,14 +1,30 @@
{ ... }:
+let
+ staggeredVersioning = {
+ type = "staggered";
+ params = {
+ cleanInterval = "3600";
+ maxAge = "31536000";
+ };
+ };
+in
{
+ systemd.tmpfiles.rules = [
+ "d /var/lib/syncthing 0775 syncthing syncthing"
+ ];
+
services.syncthing = {
enable = true;
openDefaultPorts = true;
+ # Syncthing supports named sockets but the NixOS module assumes network.
guiAddress = "[::1]:8384";
devices = {
- "sparky" = {
- id = "FE43LDI-33WS467-LIGFWCC-5PPSKN6-GYODEWJ-KLQZLN7-H3GYGLG-IJ2JGQW";
- introducer = true;
+ "Asus Nexus 7" = {
+ id = "BVZARYC-2D56A6I-V6L2VQF-MU7IVCT-ITJTCGQ-IGMZG2W-RZRCTOT-K4GDHAY";
+ };
+ "DESKTOP-SFVBFBU" = {
+ id = "FQEK2MG-2AVMHEM-H6KASQ3-RTA3Z3F-A4R4MUY-YELZVRQ-6QUDSHA-DZZN7AJ";
autoAcceptFolders = true;
};
"Joes-iPhone-6" = {
@@ -19,19 +35,83 @@
id = "U7D7667-RFEFHXX-TUJGGII-CE62S6P-YC6MWNV-4LBJ4YJ-5ZUZVPT-GBC5PQH";
autoAcceptFolders = true;
};
+ "maxsettings-C6554E6AF22F" = {
+ id = "HO3QQZO-RDWYDB6-U74ZQRC-FP7YPB2-IPB2EBC-KIQ5JII-FD4KBXR-J3GCOQ5";
+ autoAcceptFolders = true;
+ };
+ "penguin" = {
+ id = "5BEB6SZ-YAPV3CC-54RZF3V-HQXXP3Y-TTVDWDU-SHHNVCH-IXKZ3O2-6RXG6QL";
+ autoAcceptFolders = true;
+ };
+ "sparky" = {
+ id = "FE43LDI-33WS467-LIGFWCC-5PPSKN6-GYODEWJ-KLQZLN7-H3GYGLG-IJ2JGQW";
+ autoAcceptFolders = true;
+ };
+ "steamdeck" = {
+ id = "SCUAABL-XU6AS5H-IZZE4PN-LY5J4LH-OYZMXTU-2UMTVUL-I7B7QKE-ZBPSAQ5";
+ autoAcceptFolders = true;
+ };
+ "weeber.mou.fo" = {
+ id = "PRE6XCX-7JDMJGJ-6TPMHOS-TP2AT3S-T6CAR3Z-URL5EEU-HVXUDJ4-C5UJ2AV";
+ autoAcceptFolders = true;
+ };
};
folders = {
+ "Documents" = {
+ id = "bhemx-9nh3v";
+ path = "~/Documents";
+ versioning = staggeredVersioning;
+ devices = [ "sparky" "weeber.mou.fo" ];
+ };
+ "Downloads" = {
+ id = "kvq6q-axjhu";
+ path = "~/Downloads";
+ versioning = staggeredVersioning;
+ devices = [ "sparky" "weeber.mou.fo" ];
+ };
+ "Game/Documents/Bioshock" = {
+ id = "7zhqz-x6uvw";
+ path = "~/Game/Documents/Bioshock";
+ versioning = staggeredVersioning;
+ devices = [ "weeber.mou.fo" ];
+ };
+ "Game/Epic Games/TheTalosPrinciple/UserData" = {
+ id = "vek7u-iausx";
+ path = "~/Game/Epic Games/TheTalosPrinciple/UserData";
+ versioning = staggeredVersioning;
+ devices = [ "DESKTOP-SFVBFBU" "maxsettings-C6554E6AF22F" "weeber.mou.fo" ];
+ };
+ "Game/PCSX2" = {
+ id = "chxsg-hpqgm";
+ path = "~/Game/PCSX2";
+ versioning = staggeredVersioning;
+ devices = [ "maxsettings-C6554E6AF22F" "weeber.mou.fo" ];
+ };
+ "Pictures" = {
+ id = "vfjsd-4fczh";
+ path = "~/Pictures";
+ versioning = staggeredVersioning;
+ devices = [ "sparky" "weeber.mou.fo" ];
+ };
"Sync" = {
id = "7thks-5badk";
- path = "/var/lib/syncthing/Sync";
- versioning = {
- type = "staggered";
- params = {
- cleanInterval = "3600";
- maxAge = "31536000";
- };
- };
- devices = [ "sparky" "Joes-iPhone-6" "iPad" ];
+ path = "~/Sync";
+ versioning = staggeredVersioning;
+ devices = [
+ "Asus Nexus 7"
+ "DESKTOP-SFVBFBU"
+ "Joes-iPhone-6"
+ "iPad"
+ "penguin"
+ "sparky"
+ "weeber.mou.fo"
+ ];
+ };
+ "iPad" = {
+ id = "qtzmu-fqdrs";
+ path = "~/iPad";
+ versioning = staggeredVersioning;
+ devices = [ "iPad" ];
};
};
};