mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
24 lines
552 B
Nix
24 lines
552 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
systemd.services."nextcloud-setup" = {
|
|
requires = [ "postgresql.service" ];
|
|
after = [ "postgresql.service" ];
|
|
};
|
|
|
|
services.nextcloud = {
|
|
enable = true;
|
|
hostName = "fs.dork.dev";
|
|
https = true;
|
|
nginx.enable = 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";
|
|
};
|
|
};
|
|
}
|