mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 20:09:07 +01:00
crowdsec: Remove module
This commit is contained in:
parent
c85c6619b7
commit
9ed3d13238
6 changed files with 0 additions and 250 deletions
|
|
@ -57,9 +57,6 @@ in
|
|||
victorialogs.enable = lib.mkEnableOption "" // {
|
||||
default = config.custom.web-services.victorialogs.enable;
|
||||
};
|
||||
crowdsec.enable = lib.mkEnableOption "" // {
|
||||
default = config.custom.services.crowdsec.enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -176,22 +173,6 @@ in
|
|||
''
|
||||
);
|
||||
};
|
||||
# https://grafana.com/grafana/dashboards/19012-crowdsec-details-per-instance/
|
||||
"grafana-dashboards/crowdsec-details-per-instance-patched.json" = {
|
||||
enable = cfg.dashboards.crowdsec.enable;
|
||||
source =
|
||||
pkgs.fetchurl {
|
||||
name = "crowdsec-details-per-instance.json";
|
||||
url = "https://grafana.com/api/dashboards/19012/revisions/1/download";
|
||||
hash = "sha256-VRPWAbPRgp+2pqfmey53wMqaOhLBzXVKUZs/pJ28Ikk=";
|
||||
}
|
||||
|> (
|
||||
src:
|
||||
pkgs.runCommand "crowdsec-details-per-instance-patched.json" { buildInputs = [ pkgs.gnused ]; } ''
|
||||
sed 's/''${DS_PROMETHEUS}/Prometheus/g' ${src} > $out
|
||||
''
|
||||
);
|
||||
};
|
||||
};
|
||||
|
||||
custom.services.caddy.virtualHosts.${cfg.domain}.port = cfg.port;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue