[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";
|
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;
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user