mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 13:32:15 -06:00
feat: added syncthing
This commit is contained in:
parent
5da8744578
commit
5a5f7ed62d
4 changed files with 34 additions and 31 deletions
|
|
@ -8,7 +8,7 @@ let
|
|||
;
|
||||
|
||||
service = instances.postgresql;
|
||||
backupPath = "${instances.syncthing.paths.path0}/postgres-backups";
|
||||
backupPath = "${instances.syncthing.paths.path1}/${service.name}";
|
||||
in
|
||||
{
|
||||
services = {
|
||||
|
|
@ -25,13 +25,6 @@ in
|
|||
};
|
||||
postgresql = {
|
||||
enable = true;
|
||||
# ensureDatabases = [ firefly-iii.name ];
|
||||
# ensureUsers = [
|
||||
# {
|
||||
# name = firefly-iii.name;
|
||||
# ensureDBOwnership = true;
|
||||
# }
|
||||
# ];
|
||||
};
|
||||
};
|
||||
networking = {
|
||||
|
|
@ -53,14 +46,11 @@ in
|
|||
];
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
"d ${backupPath} 0750 ${service.name} ${instances.syncthing.name} -"
|
||||
];
|
||||
|
||||
users.users.${service.name}.extraGroups = [
|
||||
instances.nextcloud.name
|
||||
instances.mastodon.name
|
||||
instances.forgejo.name
|
||||
instances.syncthing.name
|
||||
];
|
||||
|
||||
system.activationScripts.postgresCommands = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue