Home

dotnix @d9c3b5c59cd01f3923f8ba090a3c17087b099456 - refs - log -
-
https://git.jolheiser.com/dotnix.git
My nix dotfiles
dotnix / machines / dragonwell / restic.nix
- raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ config, ... }:
{
  age.secrets = {
    restic-env.file = ../../secrets/personal/restic-env.age;
    restic-pass.file = ../../secrets/personal/restic-pass.age;
    restic-repo.file = ../../secrets/personal/restic-repo.age;
  };
  services.restic.backups.dragonwell = {
    initialize = true;
    environmentFile = config.age.secrets.restic-env.path;
    passwordFile = config.age.secrets.restic-pass.path;
    repositoryFile = config.age.secrets.restic-repo.path;
    paths = [ "/var/lib/ugit/repos" ];
    pruneOpts = [
      "--keep-daily 7"
      "--keep-weekly 2"
      "--keep-monthly 2"
    ];
    timerConfig = {
      OnCalendar = "daily";
      Persistent = true;
    };
  };
}