golgi/modules/syncthing.nix

38 lines
991 B
Nix
Raw Permalink Normal View History

2023-12-10 17:23:29 +00:00
{ config, lib, ... }:
with lib;
{
services.syncthing = {
enable = true;
dataDir = "/var/lib/syncthing";
guiAddress = "localhost:8384";
overrideDevices = true;
overrideFolders = true;
settings = {
gui = {
user = "tec";
password = "$2a$10$yXPBFhobbJGT3FRNEWmdRO891ZLTF247XQ2fYmJK8dsqzIWLKOPKC";
};
devices = {
"tranquillity" = { id = "VXWXMXK-MWENVPV-PV75JQH-45OP44F-QMPH645-JVWGJB2-C2GKHSV-QARV5A2"; };
2023-12-16 01:31:26 +00:00
"demure" = { id = "DLCN7FP-BMHTAG6-QZHYGPJ-74IALUD-NZII77W-K73SPGU-L7QNGIS-NO674AH"; };
2023-12-11 16:14:34 +00:00
"phone" = { id = "IMNPYY2-BZMILMV-PYUCUOS-UCO4WNJ-UBRW7EY-VESRBGA-XHTNZ6G-E34J5QC"; };
2023-12-10 17:23:29 +00:00
};
folders = {
"tec-public" = {
path = "~/public";
2023-12-16 01:31:26 +00:00
devices = [ "tranquillity" "demure" "phone" ];
type = "receiveonly";
};
};
2023-12-10 17:23:29 +00:00
};
};
users.users = (mkIf config.services.caddy.enable {
syncthing = {
homeMode = "750";
};
});
2023-12-10 17:23:29 +00:00
}