add nextcloud

This commit is contained in:
Leon Vatthauer 2024-05-28 08:56:45 +02:00
parent 133c63ccfd
commit 860a267f68
Signed by: leonv
SSH key fingerprint: SHA256:G4+ddwoZmhLPRB1agvXzZMXIzkVJ36dUYZXf5NxT+u8
6 changed files with 23 additions and 6 deletions

View file

@ -6,5 +6,6 @@
"video.vatthauer.xyz".email = "leonvatthauer@outlook.com"; "video.vatthauer.xyz".email = "leonvatthauer@outlook.com";
"files.vatthauer.xyz".email = "leonvatthauer@outlook.com"; "files.vatthauer.xyz".email = "leonvatthauer@outlook.com";
"www.vatthauer.xyz".email = "leonvatthauer@outlook.com"; "www.vatthauer.xyz".email = "leonvatthauer@outlook.com";
"cloud.vatthauer.xyz".email = "leonvatthauer@outlook.com";
}; };
} }

View file

@ -10,7 +10,7 @@
enable = true; enable = true;
serviceConfig.User = "ddns"; serviceConfig.User = "ddns";
path = [ pkgs.curl ]; path = [ pkgs.curl ];
script = "${../../nix-secrets/willem/ddns/update}"; script = "${../../nix-secrets/dafoe/ddns/update}";
startAt = "hourly"; startAt = "hourly";
}; };
} }

View file

@ -0,0 +1,11 @@
{
services.nextcloud = {
enable = true;
package = pkgs.nextcloud29
hostName = "cloud.vatthauer.xyz";
https = true;
config.adminpassFile = "${../../nix-secrets/dafoe/nextcloud/adminpass}";
configureRedis = true;
maxUploadSize = "1G";
};
}

View file

@ -45,4 +45,9 @@
extraConfig = "autoindex on;"; extraConfig = "autoindex on;";
}; };
}; };
services.nginx.virtualHosts."cloud.vatthauer.xyz" = {
forceSSL = true;
enableACME = true;
# nextcloud does location setup itself
};
} }

View file

@ -2,8 +2,8 @@
services.restic.backups = { services.restic.backups = {
giteaBackup = { giteaBackup = {
paths = [ "/forgejo/dump" ]; paths = [ "/forgejo/dump" ];
environmentFile = "${../../nix-secrets/willem/gitea/backupCreds}"; environmentFile = "${../../nix-secrets/dafoe/gitea/backupCreds}";
passwordFile = "${../../nix-secrets/willem/restic/password}"; passwordFile = "${../../nix-secrets/dafoe/restic/password}";
repository = "b2:gitea-willem"; repository = "b2:gitea-willem";
initialize = true; initialize = true;
timerConfig = { timerConfig = {

View file

@ -10,10 +10,10 @@
ROCKET_LOG = "critical"; ROCKET_LOG = "critical";
ADMIN_TOKEN = "${../../nix-secrets/willem/vaultwarden/admin-token}"; ADMIN_TOKEN = "${../../nix-secrets/dafoe/vaultwarden/admin-token}";
YUBICO_CLIENT_ID = "${../../nix-secrets/willem/vaultwarden/yubico-id}"; YUBICO_CLIENT_ID = "${../../nix-secrets/dafoe/vaultwarden/yubico-id}";
YUBICO_SECRET_KEY = "${../../nix-secrets/willem/vaultwarden/yubico-secret}"; YUBICO_SECRET_KEY = "${../../nix-secrets/dafoe/vaultwarden/yubico-secret}";
}; };
}; };
} }