Add SyncThing to kerighan
Also move services to shared for better composability.
This commit is contained in:
parent
643d415f23
commit
f2b1a68c7b
|
@ -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 = {
|
||||||
|
|
|
@ -9,17 +9,19 @@
|
||||||
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 = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
defaults = {
|
defaults = {
|
||||||
email = "t+acme@tsvallender.co.uk";
|
email = "t+acme@tsvallender.co.uk";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue