sshguard is now optional

This commit is contained in:
Motiejus Jakštys 2023-09-14 06:41:16 +03:00
parent f34af96bc4
commit 85917635fd
7 changed files with 8 additions and 4 deletions

View File

@ -44,6 +44,7 @@
services = { services = {
node_exporter.enable = true; node_exporter.enable = true;
sshguard.enable = true;
postfix = { postfix = {
enable = true; enable = true;

View File

@ -76,6 +76,7 @@
services = { services = {
node_exporter.enable = true; node_exporter.enable = true;
sshguard.false = true;
deployerbot = { deployerbot = {
follower = { follower = {

View File

@ -161,6 +161,7 @@
gitea.enable = true; gitea.enable = true;
snmp_exporter.enable = true; snmp_exporter.enable = true;
sshguard.enable = true;
headscale = { headscale = {
enable = true; enable = true;

View File

@ -61,6 +61,7 @@
services = { services = {
node_exporter.enable = true; node_exporter.enable = true;
sshguard.enable = true;
borgstor = { borgstor = {
enable = true; enable = true;

View File

@ -10,7 +10,6 @@
./fileSystems ./fileSystems
./snapshot ./snapshot
./sshd ./sshd
./sshguard
./unitstatus ./unitstatus
./users ./users
./zfs ./zfs

View File

@ -16,6 +16,7 @@
./nsd-acme ./nsd-acme
./postfix ./postfix
./snmp_exporter ./snmp_exporter
./sshguard
./syncthing ./syncthing
./zfsunlock ./zfsunlock
]; ];

View File

@ -4,14 +4,14 @@
myData, myData,
... ...
}: { }: {
options.mj.base.sshguard = with lib.types; { options.mj.services.sshguard = with lib.types; {
enable = lib.mkOption { enable = lib.mkOption {
type = bool; type = bool;
default = true; default = false;
}; };
}; };
config = lib.mkIf config.mj.base.sshguard.enable { config = lib.mkIf config.mj.services.sshguard.enable {
services.sshguard = { services.sshguard = {
enable = true; enable = true;
blocktime = 900; blocktime = 900;