Initial commit
This commit is contained in:
commit
ea1a31f442
37 changed files with 875 additions and 0 deletions
33
roles/server/syncthing.nix
Executable file
33
roles/server/syncthing.nix
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
{ config, ... }:
|
||||
|
||||
{
|
||||
age.secrets = {
|
||||
syncthingKey.file = ../../secrets/syncthing/key;
|
||||
syncthingCert.file = ../../secrets/syncthing/cert;
|
||||
};
|
||||
services.syncthing = {
|
||||
enable = true;
|
||||
key = config.age.secrets.syncthingKey.path;
|
||||
cert = config.age.secrets.syncthingCert.path;
|
||||
guiAddress = "0.0.0.0:8384";
|
||||
devices = {
|
||||
"phone" = {
|
||||
id = "K7KNZ5V-XREUADL-CROQXPV-6AA4H65-2VUD34Z-VQWKJ6S-LWWW4EE-XPNEZQ6";
|
||||
name = "Xiaomi Redmi Note 10 Pro";
|
||||
};
|
||||
"pc" = {
|
||||
name = "Archie";
|
||||
id = "MGMYYA2-4PXGHHH-2LOVD5N-I7IYBBS-4Y4UQNK-H73S2JG-ZCK5GCN-NHTWMAR";
|
||||
addresses = [ "tcp://archie.local:22000" "tcp://192.168.0.160:22000"];
|
||||
};
|
||||
};
|
||||
folders = {
|
||||
"passwords" = {
|
||||
label = "KeePassXC Passwords";
|
||||
id = "rdyaq-ex659";
|
||||
path = "${config.services.syncthing.dataDir}/passwords";
|
||||
devices = [ "phone" "pc" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue