This commit is contained in:
iFargle 2023-07-06 12:35:33 +09:00
parent 0e1adcb8ba
commit 1486284f46
4 changed files with 8 additions and 7 deletions

View file

@ -82,6 +82,7 @@
isNormalUser = true; isNormalUser = true;
description = "Albert J. Copeland"; description = "Albert J. Copeland";
extraGroups = [ "networkmanager" "wheel" ]; extraGroups = [ "networkmanager" "wheel" ];
# passwordFile = /run/secrets/albert-pass
}; };
# Enable flakes: https://nixos.wiki/wiki/Flakes # Enable flakes: https://nixos.wiki/wiki/Flakes

View file

@ -13,9 +13,4 @@
overalljails = true; # Calculate the bantime based on all the violations overalljails = true; # Calculate the bantime based on all the violations
}; };
}; };
# The SystemD Unit file configuration
systemd.services.fail2ban = {
postStart = "sleep 2 && chmod o+r /var/run/fail2ban/fail2ban.socket";
};
} }

View file

@ -7,6 +7,11 @@
restartUnits = [ "telegraf.service" ]; restartUnits = [ "telegraf.service" ];
}; };
users.users.telegraf {
extraGroups = [ "wheel" ];
isSystemUser = true;
};
# Install the package # Install the package
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
lm_sensors lm_sensors