nixos/services/syncthing/default.nix
Evie Litherland-Smith d5b54b8551 Add traefik route with auth for syncthing-webinterface
Add auth to adguardhome and grafana traefik routes as well
2023-10-26 17:22:47 +01:00

39 lines
893 B
Nix

{ config, lib, pkgs, user, ... }:
let devices = [ "Ion" "Legion" "Northstar" "Ronin" "Vanguard" ];
in {
imports = [ ../traefik/syncthing.nix ];
services.syncthing = {
enable = true;
systemService = true;
overrideDevices = false;
overrideFolders = true;
openDefaultPorts = true;
settings.folders = {
"Documents" = {
inherit devices;
id = "gvggx-6telk";
path = "~/Documents";
ignorePerms = true;
};
"Music" = {
inherit devices;
id = "munzw-vnxhl";
path = "~/Music";
ignorePerms = true;
};
"Pictures" = {
inherit devices;
id = "ziuj8-rm6dn";
path = "~/Pictures";
ignorePerms = true;
};
"Videos" = {
inherit devices;
id = "mbsop-qteua";
path = "~/Videos";
ignorePerms = true;
};
};
};
}