mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 14:01:34 +01:00
crowdsec: Auto enable sources when appropriate
This commit is contained in:
parent
c9f05a040e
commit
59d2a732a0
2 changed files with 9 additions and 8 deletions
|
|
@ -24,9 +24,15 @@ in
|
|||
default = 6060;
|
||||
};
|
||||
sources = {
|
||||
iptables = lib.mkEnableOption "";
|
||||
caddy = lib.mkEnableOption "";
|
||||
sshd = lib.mkEnableOption "";
|
||||
iptables = lib.mkEnableOption "" // {
|
||||
default = true;
|
||||
};
|
||||
caddy = lib.mkEnableOption "" // {
|
||||
default = config.services.caddy.enable;
|
||||
};
|
||||
sshd = lib.mkEnableOption "" // {
|
||||
default = config.services.openssh.enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue