about summary refs log tree commit diff
path: root/hosts/common/server
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--hosts/common/server/grafana.nix10
1 files changed, 9 insertions, 1 deletions
diff --git a/hosts/common/server/grafana.nix b/hosts/common/server/grafana.nix
index b2d7841..7af5256 100644
--- a/hosts/common/server/grafana.nix
+++ b/hosts/common/server/grafana.nix
@@ -1,9 +1,17 @@
 { config, lib, pkgs, ... }:
 
 {
-  grafana = {
+  services.grafana = {
     enable = true;
     # Bind to all interfaces.
     addr = "";
+    security.adminUser = "fcuny";
+
+    services.grafana.provision.datasources = [{
+      name = "prometheus";
+      isDefault = true;
+      type = "prometheus";
+      url = "http://localhost:9090";
+    }];
   };
 }