From 1b318bc4cfc79fc90ea20060eece241da0ba384b Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Wed, 14 Jun 2023 22:48:39 +0300 Subject: [PATCH] nixos/fail2ban: add white list --- nixos/hosts/canigou/default.nix | 2 +- nixos/hosts/magenta/default.nix | 2 +- nixos/shared/fail2ban/default.nix | 8 ++++++++ nixos/shared/{ => fail2ban}/fail2ban.nix | 0 nixos/shared/fail2ban/fail2ban.secret.nix | Bin 0 -> 155 bytes 5 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 nixos/shared/fail2ban/default.nix rename nixos/shared/{ => fail2ban}/fail2ban.nix (100%) create mode 100644 nixos/shared/fail2ban/fail2ban.secret.nix diff --git a/nixos/hosts/canigou/default.nix b/nixos/hosts/canigou/default.nix index 945d7c8..b777590 100644 --- a/nixos/hosts/canigou/default.nix +++ b/nixos/hosts/canigou/default.nix @@ -10,7 +10,7 @@ in ../../modules/nix.nix ../../shared/common.nix - ../../shared/fail2ban.nix + ../../shared/fail2ban ../../shared/garbage-collector.nix ../../shared/docker-swarm.nix diff --git a/nixos/hosts/magenta/default.nix b/nixos/hosts/magenta/default.nix index 68d7d8e..2ac1d82 100644 --- a/nixos/hosts/magenta/default.nix +++ b/nixos/hosts/magenta/default.nix @@ -10,7 +10,7 @@ in ../../modules/nix.nix ../../shared/common.nix - ../../shared/fail2ban.nix + ../../shared/fail2ban ../../shared/garbage-collector.nix ../../shared/docker-swarm.nix diff --git a/nixos/shared/fail2ban/default.nix b/nixos/shared/fail2ban/default.nix new file mode 100644 index 0000000..4d05ed5 --- /dev/null +++ b/nixos/shared/fail2ban/default.nix @@ -0,0 +1,8 @@ +{ ... }: + +{ + imports = [ + ./fail2ban.nix + ./fail2ban.secret.nix + ]; +} diff --git a/nixos/shared/fail2ban.nix b/nixos/shared/fail2ban/fail2ban.nix similarity index 100% rename from nixos/shared/fail2ban.nix rename to nixos/shared/fail2ban/fail2ban.nix diff --git a/nixos/shared/fail2ban/fail2ban.secret.nix b/nixos/shared/fail2ban/fail2ban.secret.nix new file mode 100644 index 0000000000000000000000000000000000000000..a2130b84444983f80460301b35a79516b092d104 GIT binary patch literal 155 zcmV;M0A&9FM@dveQdv+`0Eb|^MQko)({y9ut|DBK>GZJTLmYL0ZHvyGGW#^@x9(Ul zaO*FB?pETCBB=od&S^+{@5v6=GKiR4tS;pt-jA%Gu)bD=PT+Q22k}*y-!ZRI*g57_bt;#&c~_m!Pw= JOaa>xjmuJNQ~Uq` literal 0 HcmV?d00001