[NixOS] Share syncthing directory from biskcomp
This commit is contained in:
parent
5692999aa1
commit
4b71ea64fe
@ -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;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
@ -28,6 +28,9 @@ in
|
||||
home = "/var/lib/syncthing";
|
||||
createHome = true;
|
||||
};
|
||||
nginx = {
|
||||
extraGroups = ["syncthing"];
|
||||
};
|
||||
imalison = userDefaults // {
|
||||
extraGroups = extraGroupsWithWheel;
|
||||
name = "imalison";
|
||||
|
Loading…
Reference in New Issue
Block a user