diff --git a/sys/platforms/vps/default.nix b/sys/platforms/vps/default.nix index 697721e..c809bcb 100644 --- a/sys/platforms/vps/default.nix +++ b/sys/platforms/vps/default.nix @@ -24,7 +24,10 @@ with lib; { }; }; - networking.hostName = "vps"; + networking = { + hostName = "vps"; + domain = "posixlycorrect.com"; + }; services.openssh = { settings.PasswordAuthentication = false; diff --git a/sys/platforms/vps/srv/default.nix b/sys/platforms/vps/srv/default.nix index cf7adb0..5fedff9 100644 --- a/sys/platforms/vps/srv/default.nix +++ b/sys/platforms/vps/srv/default.nix @@ -21,5 +21,6 @@ with lib; { ./trilium.nix # ./firefly.nix gnucash is better ./roundcube.nix + ./syncthing.nix ]; } diff --git a/sys/platforms/vps/srv/syncthing.nix b/sys/platforms/vps/srv/syncthing.nix new file mode 100644 index 0000000..4ad06af --- /dev/null +++ b/sys/platforms/vps/srv/syncthing.nix @@ -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"; + }; + }; + }; +}