From 524770b351804beb493b71704d5e57a268dd3d7b Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Sat, 3 Oct 2026 17:21:37 +0800 Subject: [PATCH] security(shoukei): disable prometheus exporters --- hosts/12kingdoms-shoukei/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/12kingdoms-shoukei/default.nix b/hosts/12kingdoms-shoukei/default.nix index ddab8790..2d0d8d7a 100644 --- a/hosts/12kingdoms-shoukei/default.nix +++ b/hosts/12kingdoms-shoukei/default.nix @@ -21,8 +21,12 @@ in services.sunshine.enable = lib.mkForce false; services.tuned.ppdSettings.main.default = lib.mkForce "power-saver"; - # Laptop joins untrusted networks and is no longer scraped; don't expose :9100. + # Laptop joins untrusted networks and is never scraped (see youko's + # `offlineHosts`); don't expose :9100, and don't keep the smartctl exporter + # (:9633) running either -- nothing collects it and the laptop isn't a + # long-lived drive to watch. services.prometheus.exporters.node.enable = lib.mkForce false; + services.prometheus.exporters.smartctl.enable = lib.mkForce false; # resolvconf restarts nscd on every /etc/resolv.conf rewrite (see # /etc/resolvconf.conf). Boot network churn exceeds the default start limit