syncthing: add declarative secrets for Drone
This commit is contained in:
parent
5860c9c430
commit
b63fb76045
2 changed files with 33 additions and 20 deletions
|
|
@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue