feat: added syncthing

This commit is contained in:
Nick 2025-10-10 02:03:44 -05:00
parent 5da8744578
commit 5a5f7ed62d
4 changed files with 34 additions and 31 deletions

View file

@ -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 = ''