about summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-28 19:17:48 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-28 19:17:48 -0800
commit20b9993c8cae0e34f5e54222fd831f1d1c4f24ab (patch)
treed52accbc43aa8e4410077ff5973e91a04f7ce182 /hosts
parentprometheus: initial configuration for the server (diff)
downloadworld-20b9993c8cae0e34f5e54222fd831f1d1c4f24ab.tar.gz
grafana: initial configuration
Diffstat (limited to 'hosts')
-rw-r--r--hosts/common/nas.nix1
-rw-r--r--hosts/common/server/grafana.nix9
2 files changed, 10 insertions, 0 deletions
diff --git a/hosts/common/nas.nix b/hosts/common/nas.nix
index 8ab11a8..255e95e 100644
--- a/hosts/common/nas.nix
+++ b/hosts/common/nas.nix
@@ -5,5 +5,6 @@
     ./server/default.nix
     ./server/samba.nix
     ./server/prometheus.nix
+    ./server/grafana.nix
   ];
 }
diff --git a/hosts/common/server/grafana.nix b/hosts/common/server/grafana.nix
new file mode 100644
index 0000000..b2d7841
--- /dev/null
+++ b/hosts/common/server/grafana.nix
@@ -0,0 +1,9 @@
+{ config, lib, pkgs, ... }:
+
+{
+  grafana = {
+    enable = true;
+    # Bind to all interfaces.
+    addr = "";
+  };
+}