crawler: use the tool's own flake instead of a copy of the script
All checks were successful
nixos / nixos (push) Successful in 21s
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:
parent
2cde6aafbb
commit
35bc42b01b
1 changed files with 39 additions and 938 deletions
|
|
@ -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 ];
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue