use keys file for syncthing as well

This commit is contained in:
Haak Saxberg 2022-07-31 22:45:58 -07:00
parent 6a87e1a9e4
commit 35545242ac
3 changed files with 11 additions and 4 deletions

View file

@ -151,8 +151,8 @@
user = "haak";
dataDir = "/home/haak/synced";
configDir = "/home/haak/synced/.config/syncthing";
cert = if builtins.pathExists "/home/haak/dotfiles/secrets/syncthing/cert.pem" then "/home/haak/dotfiles/secrets/syncthing/cert.pem" else null;
key = if builtins.pathExists "/home/haak/dotfiles/secrets/syncthing/key.pem" then "/home/haak/dotfiles/secrets/syncthing/key.pem" else null;
cert = (import ./keys.nix).syncthing.cert;
key = (import ./keys.nix).syncthing.key;
};
location.provider = "geoclue2";