use keys file for syncthing as well
This commit is contained in:
parent
6a87e1a9e4
commit
35545242ac
3 changed files with 11 additions and 4 deletions
|
|
@ -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";
|
||||
|
|
|
|||
|
|
@ -1,3 +1,10 @@
|
|||
{
|
||||
public = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMd7+5+rLGrsGbg+mXjzQLqwAR2VNNFPCb7Va4FqVwd7 haak@framework";
|
||||
ssh = {
|
||||
public = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMd7+5+rLGrsGbg+mXjzQLqwAR2VNNFPCb7Va4FqVwd7 haak@framework";
|
||||
};
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue