feat(gustave): init syncthing

This commit is contained in:
Julien Malka 2025-01-19 22:54:03 +01:00
parent 3e615b11a3
commit 96a9901a8e
Signed by: Luj
GPG key ID: 6FC74C847011FD83
2 changed files with 33 additions and 0 deletions

View file

@ -17,6 +17,7 @@
./plausible.nix
./nextcloud.nix
./glance.nix
./syncthing.nix
];
machine.meta = {

View file

@ -0,0 +1,32 @@
{ config, ... }:
{
services.syncthing = {
enable = true;
user = "julien";
group = "users";
overrideDevices = true;
overrideFolders = true;
settings.options = {
urAccepted = -1;
listenAddresses = [ "tcp://${config.machine.meta.ips.vpn.ipv4}" ];
};
devices = {
"fischer" = {
id = "XEPZZIP-GX73OKE-KNGZA47-XWWGI5G-LNXPU57-BMLXK5M-VNGS5UQ-ZFIZSAK";
};
};
folders = {
"dev" = {
path = "/home/julien/dev";
devices = [
"fischer"
];
};
};
};
systemd.services.syncthing.serviceConfig.StateDirectory = "syncthing";
systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true";
}