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

@ -5,12 +5,8 @@
...
}:
let
inherit (flake.config.machines.devices)
ceres
;
inherit (flake.config.services)
instances
;
inherit (flake.config.machines.devices) ceres;
inherit (flake.config.services) instances;
service = instances.postgresql;
# backupPath = "${instances.syncthing.paths.path1}/${service.name}";
@ -51,7 +47,6 @@ in
};
users.users.${service.name}.extraGroups = [
instances.nextcloud.name
instances.mastodon.name
instances.forgejo.name
instances.syncthing.name

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
];
};
};
}