Add fail2ban socket

This commit is contained in:
iFargle 2023-07-06 13:23:15 +09:00
parent 34b9e9d24b
commit 58a2fc48b1

View file

@ -1,12 +1,14 @@
{ config, pkgs, hostname, ... }: {
# Telegraf Monitoring
# Set up the secrets file for the token:
sops.secrets.telegraf-token = {
owner = "telegraf";
sopsFile = ../secrets/secrets.yaml;
restartUnits = [ "telegraf.service" ];
};
# Add telegraf to "wheel" to allow the use of sudo:
users.users.telegraf = {
extraGroups = [ "wheel" ];
isSystemUser = true;
@ -69,6 +71,7 @@
system = {};
fail2ban = {
use_sudo = true;
socket = "/var/run/fail2ban/fail2ban.sock"
};
intel_powerstat = {};
net = {};