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
7cbeadc253
commit
5da8744578
1 changed files with 2 additions and 5 deletions
|
|
@ -112,21 +112,18 @@ in
|
||||||
ExecStartPost = "${pkgs.nushell}/bin/nu -c 'ls ${backupPath} | where name =~ forgejo-backup and modified < ((date now) - 7day) | each { rm $in.name }'";
|
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/mkdir -p ${backupPath}"
|
|
||||||
"+${pkgs.coreutils}/bin/chown ${service.name}:${syncthing.name} ${backupPath}"
|
|
||||||
"+${pkgs.coreutils}/bin/chmod 0750 ${backupPath}"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
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} -"
|
||||||
|
"d ${backupPath} 0750 ${service.name} ${syncthing.name} -"
|
||||||
];
|
];
|
||||||
|
|
||||||
users.users.${service.name}.extraGroups = [
|
users.users.${service.name}.extraGroups = [
|
||||||
"caddy"
|
"caddy"
|
||||||
"postgres"
|
"postgres"
|
||||||
|
"syncthing"
|
||||||
];
|
];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue