about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/grfn/system/system/machines/mugwump.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/users/grfn/system/system/machines/mugwump.nix b/users/grfn/system/system/machines/mugwump.nix
index cc2fe29cd23d..e52576a6cc68 100644
--- a/users/grfn/system/system/machines/mugwump.nix
+++ b/users/grfn/system/system/machines/mugwump.nix
@@ -13,6 +13,8 @@ with lib;
 
   networking.hostName = "mugwump";
 
+  system.stateVersion = "22.05";
+
   boot = {
     loader.systemd-boot.enable = true;
 
@@ -106,15 +108,20 @@ with lib;
 
   services.grafana = {
     enable = true;
-    port = 3000;
-    domain = "metrics.gws.fyi";
-    rootUrl = "https://metrics.gws.fyi";
     dataDir = "/var/lib/grafana";
-    analytics.reporting.enable = false;
+
+    settings = {
+      server = {
+        http_port = 3000;
+        root_url = "https://metrics.gws.fyi";
+        domain = "metrics.gws.fyi";
+      };
+      analytics.reporting_enabled = false;
+    };
 
     provision = {
       enable = true;
-      datasources = [{
+      datasources.settings.datasources = [{
         name = "Prometheus";
         type = "prometheus";
         url = "http://localhost:9090";