33 lines
No EOL
857 B
Nix
Executable file
33 lines
No EOL
857 B
Nix
Executable file
{ 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" ];
|
|
};
|
|
};
|
|
};
|
|
} |