diff --git a/hosts/manatee/modules/syncthing/default.nix b/hosts/manatee/modules/syncthing/default.nix index e597cb4..bbd0e2e 100644 --- a/hosts/manatee/modules/syncthing/default.nix +++ b/hosts/manatee/modules/syncthing/default.nix @@ -13,6 +13,9 @@ in services.syncthing = { enable = true; + cert = config.age.secrets.syncthing-cert.path; + key = config.age.secrets.syncthing-key.path; + user = "storage"; group = "storage"; @@ -32,5 +35,12 @@ in folders = { }; }; }; + + age = { + secrets = { + "syncthing-cert".file = ../../../../secrets/manatee/syncthing-cert.age; + "syncthing-key".file = ../../../../secrets/manatee/syncthing-key.age; + }; + }; }; }