mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 20:39:18 -08:00
29 lines
669 B
Nix
29 lines
669 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
systemd.services."nextcloud-setup" = {
|
|
requires = [ "postgresql.service" ];
|
|
after = [ "postgresql.service" ];
|
|
};
|
|
|
|
services.nextcloud = {
|
|
enable = true;
|
|
hostName = "files.kittywit.ch";
|
|
package = pkgs.nextcloud20;
|
|
https = true;
|
|
config = {
|
|
dbtype = "pgsql";
|
|
dbuser = "nextcloud";
|
|
dbhost = "/run/postgresql";
|
|
dbname = "nextcloud";
|
|
adminpassFile =
|
|
"/var/lib/nextcloud/admin-pass"; # TODO replace this with proper secrets management
|
|
adminuser = "root";
|
|
};
|
|
};
|
|
|
|
services.nginx.virtualHosts."files.kittywit.ch" = {
|
|
forceSSL = true;
|
|
enableACME = true;
|
|
};
|
|
}
|