crawler: use the tool's own flake instead of a copy of the script
All checks were successful
nixos / nixos (push) Successful in 21s

crawler-alert.py was a byte-identical copy of the one in
asxpi/traefik-crawlers-statistics. That repository now has a package and
a NixOS module with the same three units and timers; iac takes it as a
flake input and keeps only the settings. The package also puts dig on
the script's path, which the Meta ASN check needs and lacked here.

Assisted-by: Claude:opus-5-5
This commit is contained in:
Sergei Poljanski 2026-11-17 12:00:16 +04:00
commit 35bc42b01b
Signed by: asxpi
GPG key ID: 4F8851660FA4121B

View file

@ -15,6 +15,11 @@
inputs.nixpkgs.follows = "nixpkgs";
inputs.treefmt-nix.inputs.nixpkgs.follows = "nixpkgs";
};
# services.crawler-alert (hosts/asxpio-ops/crawler.nix)
crawler-alert = {
url = "git+https://git.asxp.io/asxpi/traefik-crawlers-statistics?ref=main";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
@ -23,6 +28,7 @@
nixpkgs-unstable,
sops-nix,
comin,
crawler-alert,
...
}:
let
@ -69,7 +75,10 @@
};
nixosConfigurations = {
asxpio-ops = mkHost [ ./hosts/asxpio-ops ];
asxpio-ops = mkHost [
./hosts/asxpio-ops
crawler-alert.nixosModules.default
];
asxpio-services = mkHost [ ./hosts/asxpio-services ];
};
};