summaryrefslogtreecommitdiffstats
path: root/lass/2configs/green-host.nix
blob: a83ed0544397ff3627afaf3dc30d40199102c8b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{ config, pkgs, ... }:
{
  imports = [
    <stockholm/lass/2configs/container-networking.nix>
    <stockholm/lass/2configs/syncthing.nix>
  ];
  krebs.sync-containers.containers.green = {
    peers = [
      "echelon"
      "icarus"
      "littleT"
      "mors"
      "shodan"
      "skynet"
      "styx"
    ];
    hostIp = "10.233.2.15";
    localIp = "10.233.2.16";
    format = "ecryptfs";
  };

  services.borgbackup.jobs.sync-green = {
    encryption.mode = "none";
    paths = "/var/lib/sync-containers/green/ecryptfs";
    repo = "/var/lib/sync-containers/green/backup";
    compression = "auto,lzma";
    startAt = "daily";
    prune.keep = {
      daily = 7;
      weekly = 4;
    };
  };
}