diff --git a/nixos/machines/chungus/telegraf-smart.nix b/nixos/machines/chungus/telegraf-smart.nix index e740dd3..0df46d1 100644 --- a/nixos/machines/chungus/telegraf-smart.nix +++ b/nixos/machines/chungus/telegraf-smart.nix @@ -1,6 +1,6 @@ { pkgs, ... }: { - systemd.services.telegraf.path = [ pkgs.smartmontools pkgs.nvme-cli "/run/wrappers" ]; + services.smartd.enable = true; environment.systemPackages = [ pkgs.smartmontools pkgs.nvme-cli ]; services.telegraf = { @@ -10,8 +10,8 @@ use_sudo = true; }; }; + systemd.services.telegraf.path = [ pkgs.smartmontools pkgs.nvme-cli "/run/wrappers" ]; - services.smartd.enable = true; security.sudo.configFile = '' # For smartctl add the following lines: Cmnd_Alias SMARTCTL = ${pkgs.smartmontools}/bin/smartctl @@ -25,4 +25,3 @@ ''; } -