test
This commit is contained in:
parent
d723aea1ed
commit
1c687a62d4
1 changed files with 7 additions and 1 deletions
|
@ -9,9 +9,15 @@
|
||||||
|
|
||||||
users.users.telegraf = {
|
users.users.telegraf = {
|
||||||
extraGroups = [ "wheel" ];
|
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
|
# Install the package
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
lm_sensors
|
lm_sensors
|
||||||
|
|
Loading…
Reference in a new issue