nixos-config/configs/nixos/plover/modules/services/crowdsec.nix

23 lines
407 B
Nix

{ config, lib, ... }:
let
hostCfg = config.hosts.plover;
cfg = hostCfg.services.crowdsec;
in
{
options.hosts.plover.services.crowdsec.enable =
lib.mkEnableOption "Crowdsec service";
config = lib.mkIf cfg.enable {
services.crowdsec = {
enable = true;
settings = {
common = {
daemonize = false;
log_media = "stdout";
};
};
};
};
}