pkgs: Syncthing

This commit is contained in:
2026-08-19 21:32:55 +03:00
committed by Sweetbread
parent 7a7155b60f
commit 59edb25ebe
8 changed files with 92 additions and 9 deletions
+37
View File
@@ -0,0 +1,37 @@
{ config, ... }: {
services.syncthing = {
enable = true;
openDefaultPorts = true;
user = "sweetbread";
dataDir = "/home/sweetbread/.config/syncthing";
key = config.sops.secrets.syncthing_key.path;
cert = config.sops.secrets.syncthing_cert.path;
settings = {
devices = {
Akeno.id = "QDW3WJX-J7ETS4R-32CUAIY-EGNM2RD-ZEHOUW2-CHOEOUG-USZOWTR-HHQS2QX";
};
folders = {
"Books" = {
path = "/mnt/D/SyncThing/Books";
devices = [ "Akeno" ];
};
".RPI" = {
path = "/mnt/D/SyncThing/.RPI";
devices = [ "Akeno" ];
};
"Music" = {
path = "/home/sweetbread/Music";
devices = [ "Akeno" ];
};
};
};
};
systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true";
}