aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/monitoring.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/monitoring.nix b/nixos/modules/monitoring.nix
index 44d3cb5..2660461 100644
--- a/nixos/modules/monitoring.nix
+++ b/nixos/modules/monitoring.nix
@@ -7,7 +7,7 @@
with lib; let
cnf = config.cynerd.monitoring;
inherit (config.networking) hostName;
- isHost = cnf.host == hostName;
+ isHost = cnf.host == hostName || hostName == "errol";
in {
options.cynerd.monitoring = {
enable = mkOption {
@@ -29,7 +29,7 @@ in {
};
config = mkMerge [
- {cynerd.monitoring.host = "errol";}
+ {cynerd.monitoring.host = "lipwig";}
(mkIf cnf.enable {
# Telegraf configuration
@@ -40,6 +40,7 @@ in {
agent = {};
outputs.influxdb_v2 = [
{
+ # TODO change to lipwig!!
urls = ["http://errol:8086"];
token = "$INFLUX_TOKEN";
organization = "personal";