[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";
};
services.nextcloud = {
enable = true;
hostName = "nextcloud.railbird.ai";
config = {
dbtype = "pgsql";
database.createLocally = true;
};
};
# services.nextcloud = {
# enable = true;
# hostName = "nextcloud.railbird.ai";
# config = {
# dbtype = "pgsql";
# database.createLocally = true;
# };
# };
services.nginx = {
enable = true;
@ -72,8 +72,11 @@ in
"syncthing.railbird.ai" = {
enableACME = true;
forceSSL = true;
root = "/var/lib/syncthing/sync";
locations."/" = {
proxyPass = "http://[::1]:8384";
extraConfig = ''
autoindex on;
'';
};
};
};

View File

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