services/syncthing: init

This commit is contained in:
LavaDesu 2025-04-24 22:40:09 +10:00
parent 95b3116fa8
commit 16a8c3e186
Signed by: cilly
GPG key ID: 6500251E087653C9
3 changed files with 25 additions and 0 deletions

View file

@ -31,6 +31,8 @@
snapper
virtualisation
modules.services.syncthing
./filesystem.nix
./kernel.nix
./networking.nix

View file

@ -21,6 +21,7 @@ in {
./services/postgres.nix
./services/sonarr.nix
./services/synapse.nix
./services/syncthing.nix
./services/tmptsync.nix
./services/unbound.nix
./services/vaultwarden.nix

View file

@ -0,0 +1,22 @@
{ ... }: {
systemd.services.syncthing.environment.STNODEFAULTFOLDER = "true";
services.syncthing = {
enable = true;
openDefaultPorts = true;
user = "rin";
group = "users";
dataDir = "/persist/shared/.syncthing/data";
configDir = "/persist/shared/.syncthing/config";
settings = {
devices = {
#"anemone".id = "";
};
# folders = {
# "Obby" = {
# path = "/home/rin/Documents/Obby/Obby";
# devices = [];
# };
# };
};
};
}