about summary refs log tree commit diff
path: root/modules/persistence/restic/default.nix
blob: 5c06e4046959adb171543db79b065b9eff0d1c77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ ... }:

{
  systemd.tmpfiles.rules = [
    "L+ /etc/restic - - - - /persist/safe/etc/restic"
  ];

  services.restic.backups = {
    scaleway = {
      repository = "s3:https://s3.nl-ams.scw.cloud/swipe-stammer";
      passwordFile = "/etc/restic/scaleway/password";
      environmentFile = "/etc/restic/scaleway/env";
      paths = [ "/persist/safe" ];
    };
  };
}