Files
nixfiles/syncthing.nix
2025-12-01 00:54:10 -05:00

44 lines
970 B
Nix

{ config, ... }:
let
secretFile = builtins.WriteFile "secrets.nix" config.age.secrets.secret.path;
secrets = import ./secrets.nix;
in
{
enable = true;
# openDefaultPorts = true;
# syncthing
settings.gui = {
user = "pager";
password = "roundabout";
};
settings.devices = {
"tin" = { id = config.age.secrets.syncthing_tin.path; };
"nicrosil" = { id = config.age.secrets.syncthing_tin.path; };
};
settings.folders = {
"VRC Pictures" = {
path = "/home/abby/Pictures/VRChat";
id = "7q62w-jsps5";
type = "sendreceive";
devices = [ "tin" "nicrosil" ];
};
"VRC Avatars" = {
path = "/home/abby/projects/VRC Avatars";
id = "jdfra-eqoig";
type = "sendreceive";
devices = [ "tin" "nicrosil" ];
};
"Basis Avatars" = {
path = "/home/abby/projects/Basis Avatars";
id = "qzla2-jxhox";
type = "sendreceive";
devices = [ "tin" "nicrosil" ];
};
};
}