broken config #1

This commit is contained in:
Freecorn 2024-08-22 23:01:32 -06:00
parent 2126918fba
commit eafc9b8127

View file

@ -50,6 +50,7 @@ in
userServices = true;
};
};
services.printing = {
listenAddresses = [ "*:631" ];
allowFrom = [ "all" ];
@ -88,6 +89,10 @@ in
isNormalUser = true;
extraGroups = [ "networkmanager" "wheel" "video" "scanner" "lp" "plugdev" ];
};
users.users.nextcloud = {
extraGroups = [ "nfsShare" ];
isSystemUser = true;
};
# OpenGL and drivers
hardware.opengl = {
@ -165,6 +170,20 @@ in
proxyPass = "http://127.0.0.1:8073";
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 = ''
@ -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
security.acme = {
acceptTerms = true;