update nextcloud
This commit is contained in:
parent
fee2fa1967
commit
bd7ac2fb07
|
@ -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 = [
|
environment.systemPackages = [
|
||||||
nextcloud
|
nextcloud
|
||||||
];
|
];
|
||||||
systemd.timers."nextcloud-db-backup" = {
|
systemd.timers."nextcloud-db-backup" = {
|
||||||
wantedBy = [ "timers.target" ];
|
wantedBy = ["timers.target"];
|
||||||
timerConfig = {
|
timerConfig = {
|
||||||
# OnBootSec = "5m";
|
# OnBootSec = "5m";
|
||||||
# OnUnitActiveSec = "5m";
|
# OnUnitActiveSec = "5m";
|
||||||
OnCalendar="*-*-* 2:00:00";
|
OnCalendar = "*-*-* 2:00:00";
|
||||||
Unit = "nextcloud-db-backup.service";
|
Unit = "nextcloud-db-backup.service";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -30,7 +33,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
restic.backups = {
|
restic.backups = {
|
||||||
"nextcloud" = {
|
"nextcloud" = {
|
||||||
|
@ -50,7 +52,6 @@ in
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
nginx.virtualHosts = {
|
nginx.virtualHosts = {
|
||||||
${domain} = {
|
${domain} = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
|
@ -69,7 +70,7 @@ in
|
||||||
# Let NixOS install and configure the database automatically.
|
# Let NixOS install and configure the database automatically.
|
||||||
database.createLocally = true;
|
database.createLocally = true;
|
||||||
# Increase the maximum file upload size.
|
# Increase the maximum file upload size.
|
||||||
datadir="/pool/var/lib/nextcloud";
|
datadir = "/pool/var/lib/nextcloud";
|
||||||
|
|
||||||
maxUploadSize = "16G";
|
maxUploadSize = "16G";
|
||||||
https = true;
|
https = true;
|
||||||
|
@ -92,7 +93,7 @@ in
|
||||||
extraApps = with config.services.nextcloud.package.packages.apps; {
|
extraApps = with config.services.nextcloud.package.packages.apps; {
|
||||||
# List of apps we want to install and are already packaged in
|
# 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
|
# 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 = {
|
config = {
|
||||||
overwriteProtocol = "https";
|
overwriteProtocol = "https";
|
||||||
|
|
Loading…
Reference in a new issue