mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 05:27:13 -06:00
feat: added syncthing
This commit is contained in:
parent
96b5a31558
commit
e36358aff7
1 changed files with 9 additions and 3 deletions
|
|
@ -106,10 +106,16 @@ 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.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 }'";
|
||||
};
|
||||
};
|
||||
forgejo.serviceConfig.ExecStartPre = [
|
||||
"+${pkgs.coreutils}/bin/chgrp ${syncthing.name} ${backupPath}"
|
||||
"+${pkgs.coreutils}/bin/chmod 0750 ${backupPath}"
|
||||
];
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue