Add SyncThing to kerighan

Also move services to shared for better composability.
This commit is contained in:
Trevor Vallender 2023-09-27 12:58:32 +01:00
parent 643d415f23
commit f2b1a68c7b
5 changed files with 23 additions and 4 deletions

View File

@ -6,8 +6,9 @@
[ [
../shared/shared-configuration.nix ../shared/shared-configuration.nix
./kernighan-hardware.nix ./kernighan-hardware.nix
../shared/services/syncthing.nix
#./services/git.nix #./services/git.nix
#./services/nginx.nix ../shared/services/nginx.nix
]; ];
networking = { networking = {

View File

@ -9,10 +9,12 @@
recommendedProxySettings = true; recommendedProxySettings = true;
recommendedTlsSettings = true; recommendedTlsSettings = true;
virtualHosts."test.tsvallender.co.uk" = { virtualHosts."syncthing.tsvallender.co.uk" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
root = "/var/www/tsvallender.co.uk"; locations."/" = {
proxyPass = "http://localhost:8384";
};
}; };
}; };
security.acme = { security.acme = {

View File

@ -0,0 +1,16 @@
{ config, pkgs, inputs, ... }:
{
services.syncthing = {
enable = true;
user = "tsv";
dataDir = "/home/tsv/storagebox";
configDir = "/home/tsv/.config/syncthing";
extraOptions = {
gui.user = "tsv";
gui.password = "$2y$10$FQ.8RNztxQ1CvsnksTlYSOsgadHVc47yUhQQpc5X61BFVXXpDq..2";
gui.insecureSkipHostcheck = true;
};
};
}