2024-08-12 15:56:45 +02:00
|
|
|
{ config, ... }:
|
|
|
|
{
|
2024-08-12 21:15:24 +02:00
|
|
|
imports = [
|
|
|
|
"${
|
|
|
|
fetchTarball {
|
|
|
|
url = "https://github.com/onny/nixos-nextcloud-testumgebung/archive/fa6f062830b4bc3cedb9694c1dbf01d5fdf775ac.tar.gz";
|
|
|
|
sha256 = "0gzd0276b8da3ykapgqks2zhsqdv4jjvbv97dsxg0hgrhb74z0fs";
|
|
|
|
}
|
|
|
|
}/nextcloud-extras.nix"
|
2024-08-17 10:35:55 +02:00
|
|
|
./nextcloud-network.nix
|
2024-08-12 21:15:24 +02:00
|
|
|
]; # adding caddy support
|
|
|
|
|
2024-08-12 21:52:33 +02:00
|
|
|
sops.secrets.adminNextcloudPass = {
|
|
|
|
owner = "nextcloud";
|
|
|
|
};
|
2024-08-12 21:55:10 +02:00
|
|
|
|
2024-08-12 16:09:02 +02:00
|
|
|
services.nextcloud = {
|
2024-08-12 15:56:45 +02:00
|
|
|
enable = true;
|
|
|
|
hostName = "cloud.hypervirtual.world";
|
|
|
|
database.createLocally = true;
|
2024-08-12 21:15:24 +02:00
|
|
|
webserver = "caddy";
|
|
|
|
configureRedis = true;
|
2024-08-12 15:56:45 +02:00
|
|
|
config = {
|
|
|
|
dbtype = "pgsql";
|
2024-08-12 17:47:03 +02:00
|
|
|
adminpassFile = config.sops.secrets.adminNextcloudPass.path;
|
2024-08-12 15:56:45 +02:00
|
|
|
};
|
2024-08-12 21:50:36 +02:00
|
|
|
settings.enabledPreviewProviders = [
|
2024-08-12 21:15:24 +02:00
|
|
|
"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"
|
|
|
|
];
|
2024-08-17 10:35:55 +02:00
|
|
|
|
|
|
|
settings.trustedDomains = [ "cloud.hypervirtual.world" ];
|
|
|
|
settings.overwriteprotocol = "https";
|
|
|
|
settings.log_type = "file";
|
|
|
|
|
2024-08-12 15:56:45 +02:00
|
|
|
};
|
|
|
|
}
|