Home

infra @af7235fb242ee2daa4dd52d3e0c42ddb4bcaaa6c - refs - log -
-
https://git.jolheiser.com/infra.git
dragonwell flake
infra / dragonwell / horcrux.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
25
26
27
28
29
30
31
32
{ config, ... }:
{
  age.secrets.horcrux = {
    file = ../secrets/horcrux.age;
    owner = "horcrux";
  };
  services.horcrux = {
    enable = true;
    config = {
      key = config.age.secrets.horcrux.path;
      interval = "15m";
      repos =
        let
          repo = name: {
            inherit name;
            source = "https://git.jolheiser.com/${name}.git";
            dest = [
              "git@github.com:jolheiser/${name}"
              "git@tangled.sh:jolheiser.com/${name}"
            ];
          };
        in
        [
          (repo "horcrux")
          (repo "ugit")
          (repo "helix.drv")
          (repo "tailroute")
          (repo "go-spectre")
        ];
    };
  };
}