rm sshguard

This commit is contained in:
Motiejus Jakštys 2024-08-27 08:44:05 +03:00
parent 0e48ec63f4
commit c2e58f1314
6 changed files with 0 additions and 31 deletions

View File

@ -369,7 +369,6 @@ in
}; };
services = { services = {
sshguard.enable = true;
gitea.enable = true; gitea.enable = true;
hass.enable = true; hass.enable = true;
syncthing-relay.enable = true; syncthing-relay.enable = true;

View File

@ -85,7 +85,6 @@ in
}; };
services = { services = {
sshguard.enable = false;
ssh8022.client = { ssh8022.client = {
enable = true; enable = true;
keyfile = config.age.secrets.ssh8022-client.path; keyfile = config.age.secrets.ssh8022-client.path;

View File

@ -70,8 +70,6 @@ in
}; };
services = { services = {
sshguard.enable = false;
ssh8022.client = { ssh8022.client = {
enable = true; enable = true;
keyfile = config.age.secrets.ssh8022-client.path; keyfile = config.age.secrets.ssh8022-client.path;

View File

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

View File

@ -19,7 +19,6 @@
./postfix ./postfix
./remote-builder ./remote-builder
./ssh8022 ./ssh8022
./sshguard
./syncthing ./syncthing
./syncthing-relay ./syncthing-relay
./tailscale ./tailscale

View File

@ -1,25 +0,0 @@
{
config,
lib,
myData,
...
}:
{
options.mj.services.sshguard = with lib.types; {
enable = lib.mkOption {
type = bool;
default = false;
};
};
config = lib.mkIf config.mj.services.sshguard.enable {
services.sshguard = {
enable = true;
blocktime = 900;
whitelist = [
"192.168.0.0/16"
myData.subnets.tailscale.cidr
] ++ (lib.catAttrs "publicIP" (lib.attrValues myData.hosts));
};
};
}