feat: added nextcloud and opencloud to eris

This commit is contained in:
Nick 2025-10-25 00:42:36 -05:00
parent 090e4770d2
commit fd46841bfb
12 changed files with 157 additions and 70 deletions

View file

@ -0,0 +1,36 @@
{
flake,
...
}:
let
inherit (flake.config.services) instances;
service = instances.postgresql;
in
{
services = {
postgresqlBackup = {
enable = true;
startAt = "*-*-* 07:00:00";
databases = [
instances.nextcloud.name
];
};
postgresql = {
enable = true;
};
};
users.users.${service.name}.extraGroups = [
instances.nextcloud.name
];
networking = {
firewall = {
allowedTCPPorts = [
service.ports.port0
];
};
};
}