feat: added syncthing

This commit is contained in:
Nick 2025-10-10 01:22:13 -05:00
parent 96b5a31558
commit e36358aff7

View file

@ -106,10 +106,16 @@ in
]; ];
}; };
systemd.services.forgejo-dump = { systemd.services = {
serviceConfig = { forgejo-dump = {
ExecStartPost = "${pkgs.nushell}/bin/nu -c 'ls ${backupPath} | where name =~ forgejo-backup and modified < ((date now) - 7day) | each { rm $in.name }'"; serviceConfig = {
ExecStartPost = "${pkgs.nushell}/bin/nu -c 'ls ${backupPath} | where name =~ forgejo-backup and modified < ((date now) - 7day) | each { rm $in.name }'";
};
}; };
forgejo.serviceConfig.ExecStartPre = [
"+${pkgs.coreutils}/bin/chgrp ${syncthing.name} ${backupPath}"
"+${pkgs.coreutils}/bin/chmod 0750 ${backupPath}"
];
}; };
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [