mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 13:32:15 -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
9
modules/nixos/services/postgresql/default.nix → modules/nixos/services/postgresql/postgresCeres/default.nix
Executable file → Normal file
9
modules/nixos/services/postgresql/default.nix → modules/nixos/services/postgresql/postgresCeres/default.nix
Executable file → Normal 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
|
||||
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