This commit is contained in:
iFargle 2023-07-06 13:16:24 +09:00
parent d723aea1ed
commit 1c687a62d4

View file

@ -9,9 +9,15 @@
users.users.telegraf = {
extraGroups = [ "wheel" ];
isNormalUser = true;
isSystemUser = true;
};
# Allow the telegraf account to invoke sudo without a password
security.sudo.extraConfig = ''
telegraf ALL=(root) NOEXEC: NOPASSWD: FAIL2BAN
Defaults!FAIL2BAN !logfile, !syslog, !pam_session
'';
# Install the package
environment.systemPackages = with pkgs; [
lm_sensors