vps: add syncthing

This commit is contained in:
Fabian Montero 2025-01-22 20:18:04 -06:00
parent 8c2e1b74ef
commit 4e63a64248
Signed by: fabian
GPG key ID: 1FFAC35E1798174F
3 changed files with 28 additions and 1 deletions

View file

@ -24,7 +24,10 @@ with lib; {
}; };
}; };
networking.hostName = "vps"; networking = {
hostName = "vps";
domain = "posixlycorrect.com";
};
services.openssh = { services.openssh = {
settings.PasswordAuthentication = false; settings.PasswordAuthentication = false;

View file

@ -21,5 +21,6 @@ with lib; {
./trilium.nix ./trilium.nix
# ./firefly.nix gnucash is better # ./firefly.nix gnucash is better
./roundcube.nix ./roundcube.nix
./syncthing.nix
]; ];
} }

View file

@ -0,0 +1,23 @@
{
lib,
pkgs,
...
}:
with lib; {
services = {
syncthing = {
enable = true;
systemService = true;
overrideFolders = false;
overrideDevices = false;
openDefaultPorts = true;
guiAddress = "127.0.0.1:8384";
settings.options.urAccepted = -1;
relay = {
enable = true;
pools = [ ];
providedBy = "vps.posixlycorrect.com";
};
};
};
}