[NixOS] Share syncthing directory from biskcomp

This commit is contained in:
Ivan Malison 2023-12-07 20:21:33 -07:00
parent 5692999aa1
commit 4b71ea64fe
2 changed files with 15 additions and 9 deletions

View File

@ -40,14 +40,14 @@ in
defaults.email = "IvanMalison@gmail.com"; defaults.email = "IvanMalison@gmail.com";
}; };
services.nextcloud = { # services.nextcloud = {
enable = true; # enable = true;
hostName = "nextcloud.railbird.ai"; # hostName = "nextcloud.railbird.ai";
config = { # config = {
dbtype = "pgsql"; # dbtype = "pgsql";
database.createLocally = true; # database.createLocally = true;
}; # };
}; # };
services.nginx = { services.nginx = {
enable = true; enable = true;
@ -72,8 +72,11 @@ in
"syncthing.railbird.ai" = { "syncthing.railbird.ai" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;
root = "/var/lib/syncthing/sync";
locations."/" = { locations."/" = {
proxyPass = "http://[::1]:8384"; extraConfig = ''
autoindex on;
'';
}; };
}; };
}; };

View File

@ -28,6 +28,9 @@ in
home = "/var/lib/syncthing"; home = "/var/lib/syncthing";
createHome = true; createHome = true;
}; };
nginx = {
extraGroups = ["syncthing"];
};
imalison = userDefaults // { imalison = userDefaults // {
extraGroups = extraGroupsWithWheel; extraGroups = extraGroupsWithWheel;
name = "imalison"; name = "imalison";