mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-22 00:21:34 +01:00
Run all restic backups as root
This commit is contained in:
parent
f5e59e0d12
commit
2e53bdb015
7 changed files with 11 additions and 43 deletions
|
|
@ -1,13 +1,9 @@
|
|||
{ config, lib, ... }:
|
||||
let
|
||||
user = config.users.users.actual.name;
|
||||
in
|
||||
{
|
||||
options.custom.services.actualbudget.backups.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.custom.services.actualbudget.backups.enable {
|
||||
custom.services.resticBackups.actual = {
|
||||
inherit user;
|
||||
dependentService = "actual.service";
|
||||
extraConfig.paths = [ config.services.actual.settings.dataDir ];
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue