broken config #1
This commit is contained in:
parent
2126918fba
commit
eafc9b8127
|
@ -50,6 +50,7 @@ in
|
||||||
userServices = true;
|
userServices = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.printing = {
|
services.printing = {
|
||||||
listenAddresses = [ "*:631" ];
|
listenAddresses = [ "*:631" ];
|
||||||
allowFrom = [ "all" ];
|
allowFrom = [ "all" ];
|
||||||
|
@ -88,6 +89,10 @@ in
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [ "networkmanager" "wheel" "video" "scanner" "lp" "plugdev" ];
|
extraGroups = [ "networkmanager" "wheel" "video" "scanner" "lp" "plugdev" ];
|
||||||
};
|
};
|
||||||
|
users.users.nextcloud = {
|
||||||
|
extraGroups = [ "nfsShare" ];
|
||||||
|
isSystemUser = true;
|
||||||
|
};
|
||||||
|
|
||||||
# OpenGL and drivers
|
# OpenGL and drivers
|
||||||
hardware.opengl = {
|
hardware.opengl = {
|
||||||
|
@ -165,6 +170,20 @@ in
|
||||||
proxyPass = "http://127.0.0.1:8073";
|
proxyPass = "http://127.0.0.1:8073";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Nextcloud Proxy
|
||||||
|
"cloud.${cornDomain}" = {
|
||||||
|
enableACME = true;
|
||||||
|
addSSL = true;
|
||||||
|
locations."/" = {
|
||||||
|
proxyWebsockets = true;
|
||||||
|
extraConfig = "
|
||||||
|
location /.well-known/carddav {
|
||||||
|
return 301 $scheme://$host/remote.php/dav;
|
||||||
|
}
|
||||||
|
location /.well-known/caldav {
|
||||||
|
return 301 $scheme://$host/remote.php/dav;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
appendConfig = ''
|
appendConfig = ''
|
||||||
|
@ -183,6 +202,23 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Nextcloud server
|
||||||
|
nextcloud = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.nextcloud29;
|
||||||
|
hostName = "cloud.${cornDomain}";
|
||||||
|
datadir = "/nextcloud";
|
||||||
|
https = true;
|
||||||
|
config = {
|
||||||
|
adminuser = "freecorn";
|
||||||
|
adminpassFile = "/nextcloud/password.txt";
|
||||||
|
};
|
||||||
|
settings = {
|
||||||
|
trusted_proxies = [ "127.0.0.1" ];
|
||||||
|
trusted_domains = [ "cloud.${cornDomain}" ];
|
||||||
|
overwriteprotocol = "https";
|
||||||
|
};
|
||||||
|
|
||||||
# Get certificates for Coturn
|
# Get certificates for Coturn
|
||||||
security.acme = {
|
security.acme = {
|
||||||
acceptTerms = true;
|
acceptTerms = true;
|
||||||
|
|
Reference in a new issue