add nextcloud to alexandria

This commit is contained in:
William 2023-07-13 14:51:04 -03:00
parent 7c61786305
commit 077d0895b4
4 changed files with 44 additions and 1 deletions

View file

@ -10,6 +10,7 @@
./jellyfin.nix
./librespeed.nix
./minecraft.nix
./nextcloud.nix
./nginx.nix
./paperless.nix
./searx.nix

View file

@ -0,0 +1,27 @@
{ inputs, config, pkgs, lib, ... }:
{
services = {
nextcloud = {
enable = true;
package = pkgs.nextcloud27;
hostname = "nextcloud.baduhai.me";
configureRedis = true;
caching.apcu = false;
https = true;
sercreFile = config.age.secrets.nextcloud.path;
};
nginx.virtualHosts.${config.services.nextcloud.hostName} = {
useACMEHost = "baduhai.me";
forceSSL = true;
kTLS = true;
};
};
age.secrets.nextcloud = {
file = ../../../secrets/nextcloud.json.age;
owner = "nextcloud";
group = "hosted";
};
}

View file

@ -23,7 +23,6 @@ in {
qbittorrent = mkStringOption "8008";
actual = mkStringOption "8009";
pairdrop = mkStringOption "8010";
miniflux = mkStringOption "8011";
jellyfin = mkStringOption "8096";
sonarr = mkStringOption "8989";
jackett = mkStringOption "9117";