syncthing

This commit is contained in:
Kopatz
2024-04-14 13:49:20 +02:00
parent 8165e5a2b0
commit 72e4f1874c
2 changed files with 8 additions and 3 deletions

View File

@@ -15,6 +15,7 @@
../services/samba.nix ../services/samba.nix
../services/ssh.nix ../services/ssh.nix
../services/step-ca.nix ../services/step-ca.nix
../services/syncthing.nix
#../services/syncthing.nix #../services/syncthing.nix
../services/wireguard.nix ../services/wireguard.nix
### Other Modules ### ### Other Modules ###

View File

@@ -8,7 +8,7 @@ in
]; ];
# check device id: syncthing cli --gui-address=/synced/gui-socket --gui-apikey=<key> show system # check device id: syncthing cli --gui-address=/synced/gui-socket --gui-apikey=<key> show system
environment.systemPackages = [ syncthing ]; environment.systemPackages = with pkgs; [ syncthing ];
services.syncthing = { services.syncthing = {
enable = true; enable = true;
@@ -23,18 +23,22 @@ in
options.urAccepted = -1; options.urAccepted = -1;
options.relaysEnabled = false; options.relaysEnabled = false;
options.globalAnnounceEnabled = false; options.globalAnnounceEnabled = false;
options.gui.enabled = false; options.crashReportingEnabled = false;
devices = { devices = {
kop-pc = { kop-pc = {
id = "DZKIUS7-WCGTYEV-4OKVSZU-MIVL2NC-N45AKZL-ABT3VN2-I7RXUMF-RF4CYAU"; id = "DZKIUS7-WCGTYEV-4OKVSZU-MIVL2NC-N45AKZL-ABT3VN2-I7RXUMF-RF4CYAU";
adresses = [ "tcp://192.168.0.11:51820"]; adresses = [ "tcp://192.168.0.11:51820"];
}; };
server = {
id = "HZUUQEQ-JOKYHTU-AVFVC3U-7KUAXVC-QY3OJTF-HGU7RZ3-5HA5TOE-VT4FNQB";
adresses = [ "tcp://192.168.0.6:51820" "tcp//192.168.2.1:51820" ];
};
}; };
folders."${basePath}/default" = { folders."${basePath}/default" = {
id = "default"; id = "default";
devices = [ "kop-pc" ]; devices = [ "kop-pc" "server" ];
ignorePerms = false; ignorePerms = false;
}; };
}; };