feat: added syncthing

This commit is contained in:
Nick 2025-10-10 01:00:45 -05:00
parent c59146fc30
commit d3dd25e0d3

View file

@ -1,6 +1,7 @@
{
flake,
config,
pkgs,
...
}:
let
@ -105,6 +106,12 @@ in
];
};
systemd.services.forgejo-dump = {
serviceConfig = {
ExecStartPost = "${pkgs.nushell}/bin/nu -c 'ls ${backupPath} | where name =~ forgejo-backup and modified < ((date now) - 7day) | each { rm $in.name }'";
};
};
systemd.tmpfiles.rules = [
"Z ${service.paths.path0} 755 ${service.name} ${service.name} -"
"Z ${service.sops.path0} 755 ${service.name} ${service.name} -"