syncthing: add declarative secrets for Drone

This commit is contained in:
wo2wz 2025-12-18 12:49:24 -05:00
parent 5860c9c430
commit b63fb76045
2 changed files with 33 additions and 20 deletions

View file

@ -1,25 +1,35 @@
{ config, ... }:
{
services.syncthing.settings.folders = {
minecraft-instances = {
path = "${config.services.syncthing.dataDir}/minecraft-instances";
type = "receiveonly";
devices = [
"drone"
"earthmover"
"swordsmachine"
];
};
sops.secrets = {
"syncthing/cert.pem" = {};
"syncthing/key.pem" = {};
};
terraria = {
path = "${config.services.syncthing.dataDir}/terraria";
type = "receiveonly";
devices = [
"drone"
"earthmover"
"swordsmachine"
];
services.syncthing = {
cert = config.sops.secrets."syncthing/cert.pem".path;
key = config.sops.secrets."syncthing/key.pem".path;
settings.folders = {
minecraft-instances = {
path = "${config.services.syncthing.dataDir}/minecraft-instances";
type = "receiveonly";
devices = [
"drone"
"earthmover"
"swordsmachine"
];
};
terraria = {
path = "${config.services.syncthing.dataDir}/terraria";
type = "receiveonly";
devices = [
"drone"
"earthmover"
"swordsmachine"
];
};
};
};
}