Run all restic backups as root

This commit is contained in:
SebastianStork 2025-06-11 21:09:08 +02:00
parent f5e59e0d12
commit 2e53bdb015
7 changed files with 11 additions and 43 deletions

View file

@ -1,8 +1,6 @@
{ config, lib, ... }:
let
cfg = config.custom.services.syncthing;
user = config.users.users.syncthing.name;
in
{
options.custom.services.syncthing.backups.enable = lib.mkEnableOption "";
@ -16,7 +14,6 @@ in
];
custom.services.resticBackups.syncthing = {
inherit user;
dependentService = "syncthing.service";
extraConfig.paths = [ config.services.syncthing.dataDir ];
};