https://git.jolheiser.com/infra.git
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 34
{ config, lib, ... }: let enable = true; in lib.mkIf enable { age.secrets.horcrux = { file = ../../secrets/horcrux.age; owner = "horcrux"; }; services.horcrux = { enable = true; config = { key = config.age.secrets.horcrux.path; interval = "15m"; repos = map (name: { inherit name; source = "https://git.jolheiser.com/${name}.git"; dest = [ "git@tangled.sh:jolheiser.com/${name}" ]; }) [ "horcrux" "ugit" "helix.drv" "zed.drv" "gitpecker" "jsonnetpecker" ]; }; }; }