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
c59146fc30
commit
d3dd25e0d3
1 changed files with 7 additions and 0 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
flake,
|
flake,
|
||||||
config,
|
config,
|
||||||
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
let
|
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 = [
|
systemd.tmpfiles.rules = [
|
||||||
"Z ${service.paths.path0} 755 ${service.name} ${service.name} -"
|
"Z ${service.paths.path0} 755 ${service.name} ${service.name} -"
|
||||||
"Z ${service.sops.path0} 755 ${service.name} ${service.name} -"
|
"Z ${service.sops.path0} 755 ${service.name} ${service.name} -"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue