reformat smartd

This commit is contained in:
Ingolf Wagner 2023-06-01 07:51:37 +02:00
parent 3b06497e9a
commit 2ea2b8ed53
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -1,6 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
systemd.services.telegraf.path = [ pkgs.smartmontools pkgs.nvme-cli "/run/wrappers" ]; services.smartd.enable = true;
environment.systemPackages = [ pkgs.smartmontools pkgs.nvme-cli ]; environment.systemPackages = [ pkgs.smartmontools pkgs.nvme-cli ];
services.telegraf = { services.telegraf = {
@ -10,8 +10,8 @@
use_sudo = true; use_sudo = true;
}; };
}; };
systemd.services.telegraf.path = [ pkgs.smartmontools pkgs.nvme-cli "/run/wrappers" ];
services.smartd.enable = true;
security.sudo.configFile = '' security.sudo.configFile = ''
# For smartctl add the following lines: # For smartctl add the following lines:
Cmnd_Alias SMARTCTL = ${pkgs.smartmontools}/bin/smartctl Cmnd_Alias SMARTCTL = ${pkgs.smartmontools}/bin/smartctl
@ -25,4 +25,3 @@
''; '';
} }