vps: add syncthing
This commit is contained in:
parent
8c2e1b74ef
commit
4e63a64248
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
23
sys/platforms/vps/srv/syncthing.nix
Normal file
23
sys/platforms/vps/srv/syncthing.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue