about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2022-11-29 15:27:47 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2022-11-29 20:34:13 +0100
commit43052306ac871786ff17a5e62d04356737a4eea5 (patch)
treeffea65bc1d4f81567cea6181b331bb470ae54899
parent3d340aedeb5b7d30c1c21bcf0947ef77efe09c5d (diff)
smartmontools: add hostname to runtime closure
This makes smartd notifications contain the hostname instead of
"unknown".

Total runtime closure size:
Before: 46.1 MiB
After: 46.7 MiB
-rw-r--r--pkgs/tools/system/smartmontools/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/tools/system/smartmontools/default.nix b/pkgs/tools/system/smartmontools/default.nix
index d7bc0a2cb829e..c1749030d6dde 100644
--- a/pkgs/tools/system/smartmontools/default.nix
+++ b/pkgs/tools/system/smartmontools/default.nix
@@ -4,6 +4,7 @@
 , autoreconfHook
 , enableMail ? false
 , gnused
+, hostname
 , mailutils
 , inetutils
 , IOKit
@@ -18,7 +19,7 @@ let
     sha256 = "sha256-0dtLev4JjeHsS259+qOgg19rz4yjkeX4D3ooUgS4RTI=";
     name = "smartmontools-drivedb.h";
   };
-  scriptPath = lib.makeBinPath ([ gnused ] ++ lib.optionals enableMail [ inetutils mailutils ]);
+  scriptPath = lib.makeBinPath ([ gnused hostname ] ++ lib.optionals enableMail [ inetutils mailutils ]);
 
 in
 stdenv.mkDerivation rec {