Common/syncthing: use key and cert from secrets
This commit is contained in:
parent
2f0230c401
commit
436c1785a8
1 changed files with 13 additions and 1 deletions
|
|
@ -1,7 +1,19 @@
|
|||
{ config, ... }:
|
||||
{ config, flakeSelf, ... }:
|
||||
|
||||
let
|
||||
hostSecrets = "${flakeSelf.inputs.secrets}/" + config.networking.hostName;
|
||||
in
|
||||
|
||||
{
|
||||
# Get secrets
|
||||
age.secrets = {
|
||||
syncthingKey.file = hostSecrets + "/syncthingKey.age";
|
||||
syncthingCert.file = hostSecrets + "/syncthingCert.age";
|
||||
};
|
||||
|
||||
services.syncthing = {
|
||||
key = config.age.secrets.syncthingKey.path;
|
||||
cert = config.age.secrets.syncthingCert.path;
|
||||
overrideDevices = true;
|
||||
overrideFolders = true;
|
||||
openDefaultPorts = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue