mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
38 lines
829 B
Nix
38 lines
829 B
Nix
{ config, ... }:
|
|
{
|
|
services.nextcloud = {
|
|
enable = true;
|
|
hostName = "cloud.liv.town";
|
|
https = true;
|
|
configureRedis = true;
|
|
maxUploadSize = "10G";
|
|
|
|
virtualHosts.${config.services.nextcloud.hostName} = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
};
|
|
|
|
extraOptions.enabledPreviewProviders = [
|
|
"OC\\Preview\\BMP"
|
|
"OC\\Preview\\GIF"
|
|
"OC\\Preview\\JPEG"
|
|
"OC\\Preview\\Krita"
|
|
"OC\\Preview\\MarkDown"
|
|
"OC\\Preview\\MP3"
|
|
"OC\\Preview\\OpenDocument"
|
|
"OC\\Preview\\PNG"
|
|
"OC\\Preview\\TXT"
|
|
"OC\\Preview\\XBitmap"
|
|
"OC\\Preview\\HEIC"
|
|
];
|
|
|
|
};
|
|
|
|
|
|
security.acme = {
|
|
acceptTerms = true;
|
|
certs = {
|
|
${config.services.nextcloud.hostName}.email = "ahwx@ahwx.org";
|
|
};
|
|
};
|
|
}
|