Delete unused minimalConfig services (migrated to systems/) and working crowdsec config
Some checks are pending
/ Build Nix targets (push) Waiting to run
Some checks are pending
/ Build Nix targets (push) Waiting to run
This commit is contained in:
parent
50f70d01aa
commit
8b007885cd
7 changed files with 9 additions and 268 deletions
|
@ -23,6 +23,10 @@ in {
|
|||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
age.secrets = {
|
||||
grafana-lapi-key = {
|
||||
file = ../../secrets/grafana-lapi-key.age;
|
||||
owner = "crowdsec";
|
||||
};
|
||||
grafana-db = {
|
||||
file = ./secrets/grafana-db.age;
|
||||
owner = "grafana";
|
||||
|
@ -35,6 +39,7 @@ in {
|
|||
};
|
||||
services = {
|
||||
crowdsec = {
|
||||
settings.lapi.credentialsFile = "${config.age.secrets.grafana-lapi-key.path}";
|
||||
hub.collections = [
|
||||
"LePresidente/grafana"
|
||||
];
|
||||
|
@ -44,7 +49,7 @@ in {
|
|||
source = "journalctl";
|
||||
journalctl_filter = [ "_SYSTEMD_UNIT=grafana.service" ];
|
||||
labels = {
|
||||
type = "syslog";
|
||||
type = "journald";
|
||||
};
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue