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 = {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue