From 3a4da479e4cd6c5f66e9203027d0f74da516a4a9 Mon Sep 17 00:00:00 2001 From: Astro Date: Mon, 27 Sep 2021 22:28:56 +0200 Subject: [PATCH] DRY services.collectd.plugins.sensors --- hosts/dacbert/default.nix | 1 - hosts/radiobert/default.nix | 1 - lib/stats.nix | 2 ++ 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hosts/dacbert/default.nix b/hosts/dacbert/default.nix index 12c3f851..76eca944 100644 --- a/hosts/dacbert/default.nix +++ b/hosts/dacbert/default.nix @@ -53,7 +53,6 @@ hq.interface = "eth0"; hq.statistics.enable = true; }; - services.collectd.plugins.sensors = ""; nix = { buildCores = 4; diff --git a/hosts/radiobert/default.nix b/hosts/radiobert/default.nix index b8a1006b..8d7f1a88 100644 --- a/hosts/radiobert/default.nix +++ b/hosts/radiobert/default.nix @@ -101,7 +101,6 @@ ''; - sensors = ""; }; # List packages installed in system profile. To search, run: diff --git a/lib/stats.nix b/lib/stats.nix index a793dd90..db40933c 100644 --- a/lib/stats.nix +++ b/lib/stats.nix @@ -35,6 +35,8 @@ in cgroups = ""; vmem = ""; interface = ""; + } // lib.optionalAttrs (!config.boot.isContainer) { + sensors = ""; } // lib.optionalAttrs config.services.nginx.enable { nginx = '' URL "http://localhost/nginx_status"