From de13ca0b79079b71ff70a98799157d17ffda9e37 Mon Sep 17 00:00:00 2001 From: clerie Date: Sat, 1 May 2021 13:01:08 +0200 Subject: [PATCH] Silence HDDs on palladium --- hosts/palladium/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/palladium/configuration.nix b/hosts/palladium/configuration.nix index 59b8d9d..14c874d 100644 --- a/hosts/palladium/configuration.nix +++ b/hosts/palladium/configuration.nix @@ -15,6 +15,11 @@ networking.useDHCP = false; networking.interfaces.enp3s0.useDHCP = true; + # Keeping the harddrives quiet + services.udev.extraRules = '' + KERNEL=="sd?[0-9]", ENV{ID_MODEL}=="ST1000DM003-1SB102", ACTION=="add", RUN+="${pkgs.hdparm}/sbin/hdparm -S 24 /dev/%k" + ''; + clerie.monitoring = { enable = true; id = "206";