ctucx.git: nixfiles

ctucx' nixfiles

commit ff4920d47471b1ab3b6a8e07d10d4bed998ef34f
parent c149c63fd0de364b92ba52aa3751095170e00007
Author: Leah (ctucx) <git@ctu.cx>
Date: Fri, 15 Dec 2023 16:27:32 +0100

machines/trabbi/grafana: update settings
1 file changed, 9 insertions(+), 0 deletions(-)
diff --git a/machines/trabbi/grafana/default.nix b/machines/trabbi/grafana/default.nix
@@ -28,7 +28,14 @@
           http_port = 3001;
         };
         security.allow_embedding = true;
+        "users".auto_assign_org_role = "Viewer";
+#        "users".viewers_can_edit = true;
+        "users".home_page = "/d/FRDYqjEGz/smarthome-influx";
+        "auth".disable_login_form = true;
+        "auth.basic".enabled = false;
         "auth.anonymous".enabled = true;
+        "auth.anonymous".org_name = "Main Org.";
+        "auth.anonymous".org_role = "Viewer";
       };
 
       provision = {

@@ -41,6 +48,7 @@
             url       = "https://prometheus.ctu.cx/";
             isDefault = true;
             editable  = false;
+            jsonData.timeInterval = "20s";
           }
 
           {

@@ -72,6 +80,7 @@
         ];
 
         dashboards.settings.providers = [{
+          folder = "provisioned";
           options.path = ./dashboards;
         }];
       };