mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-08 05:49:25 -06:00
feat: added nextcloud and opencloud to eris
This commit is contained in:
parent
090e4770d2
commit
fd46841bfb
12 changed files with 157 additions and 70 deletions
36
modules/nixos/services/postgresql/postgresEris/default.nix
Normal file
36
modules/nixos/services/postgresql/postgresEris/default.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue