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
|
|
@ -32,9 +32,6 @@ in
|
|||
caddy = lib.mkEnableOption "" // {
|
||||
default = config.services.caddy.enable;
|
||||
};
|
||||
crowdsec = lib.mkEnableOption "" // {
|
||||
default = config.services.crowdsec.enable;
|
||||
};
|
||||
};
|
||||
logs.openssh = lib.mkEnableOption "" // {
|
||||
default = config.services.openssh.enable;
|
||||
|
|
@ -139,20 +136,6 @@ in
|
|||
}
|
||||
'';
|
||||
};
|
||||
"alloy/crowdsec-metrics.alloy" = {
|
||||
enable = cfg.collect.metrics.crowdsec;
|
||||
text = ''
|
||||
prometheus.scrape "crowdsec" {
|
||||
targets = [{
|
||||
__address__ = "localhost:${toString config.custom.services.crowdsec.prometheusPort}",
|
||||
job = "crowdsec",
|
||||
instance = constants.hostname,
|
||||
}]
|
||||
forward_to = [prometheus.remote_write.default.receiver]
|
||||
scrape_interval = "15s"
|
||||
}
|
||||
'';
|
||||
};
|
||||
"alloy/sshd-logs.alloy" = {
|
||||
enable = cfg.collect.logs.openssh;
|
||||
text = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue