use secrets in syncthing

This commit is contained in:
Motiejus Jakštys 2024-06-05 23:04:52 +03:00
parent 39e2800916
commit 062609fabf
2 changed files with 4 additions and 0 deletions

View File

@ -244,6 +244,8 @@
motiejus-passwd-hash.file = ./secrets/motiejus_passwd_hash.age;
root-passwd-hash.file = ./secrets/root_passwd_hash.age;
sasl-passwd.file = ./secrets/postfix_sasl_passwd.age;
syncthing-key.file = ./secrets/fwminex/syncthing/key.pem.age;
syncthing-cert.file = ./secrets/fwminex/syncthing/cert.pem.age;
};
}
];

View File

@ -126,6 +126,8 @@ in {
services.syncthing = {
inherit (cfg) enable user group dataDir;
openDefaultPorts = true;
key = config.age.secrets.syncthing-key.path;
cert = config.age.secrets.syncthing-cert.path;
settings = {
devices =