update nextcloud

This commit is contained in:
glenn 2024-07-02 09:37:59 +02:00
parent fee2fa1967
commit bd7ac2fb07

View file

@ -1,19 +1,22 @@
{ self, config, lib, pkgs, ... }:
let
domain = "cloud.sondell.org";
nextcloud = pkgs.nextcloud28;
in
{
self,
config,
lib,
pkgs,
...
}: let
domain = "cloud.sondell.org";
nextcloud = pkgs.nextcloud29;
in {
environment.systemPackages = [
nextcloud
];
systemd.timers."nextcloud-db-backup" = {
wantedBy = [ "timers.target" ];
wantedBy = ["timers.target"];
timerConfig = {
# OnBootSec = "5m";
# OnUnitActiveSec = "5m";
OnCalendar="*-*-* 2:00:00";
OnCalendar = "*-*-* 2:00:00";
Unit = "nextcloud-db-backup.service";
};
};
@ -30,7 +33,6 @@ in
};
};
services = {
restic.backups = {
"nextcloud" = {
@ -50,7 +52,6 @@ in
};
};
nginx.virtualHosts = {
${domain} = {
forceSSL = true;
@ -69,7 +70,7 @@ in
# Let NixOS install and configure the database automatically.
database.createLocally = true;
# Increase the maximum file upload size.
datadir="/pool/var/lib/nextcloud";
datadir = "/pool/var/lib/nextcloud";
maxUploadSize = "16G";
https = true;
@ -92,7 +93,7 @@ in
extraApps = with config.services.nextcloud.package.packages.apps; {
# List of apps we want to install and are already packaged in
# https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/nextcloud/packages/nextcloud-apps.json
inherit mail calendar contacts notes onlyoffice tasks cookbook;
inherit mail calendar contacts notes onlyoffice cookbook;
};
config = {
overwriteProtocol = "https";