mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-12-07 13:32:15 -06:00
test: vaultwarden backup to syncthing
This commit is contained in:
parent
25a79913fa
commit
c5d2c9005e
1 changed files with 13 additions and 5 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
flake,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
|
@ -86,11 +87,18 @@ in
|
|||
);
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [
|
||||
systemd = {
|
||||
tmpfiles.rules = [
|
||||
"Z ${service.paths.path0} 0755 ${service.name} ${service.name} -"
|
||||
"Z ${service.sops.path0} 755 ${service.name} ${service.name} -"
|
||||
];
|
||||
|
||||
services.backup-vaultwarden = {
|
||||
serviceConfig = {
|
||||
Group = lib.mkForce syncthing.name;
|
||||
};
|
||||
after = [ "${service.name}.service" ];
|
||||
};
|
||||
};
|
||||
users.users.${service.name}.extraGroups = [
|
||||
syncthing.name
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue