Flake parts with x64 and ARM support for devshell on both Linux and Mac
This commit is contained in:
40
nix/monitoring/grafana.nix
Normal file
40
nix/monitoring/grafana.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ config, pkgs, ... }: {
|
||||
services.grafana = {
|
||||
enable = true;
|
||||
provision = {
|
||||
enable = true;
|
||||
datasources.settings.datasources = [
|
||||
{
|
||||
name = "Prometheus";
|
||||
type = "prometheus";
|
||||
access = "proxy";
|
||||
url = "http://127.0.0.1:${toString config.services.prometheus.port}";
|
||||
}
|
||||
{
|
||||
name = "Loki";
|
||||
type = "loki";
|
||||
access = "proxy";
|
||||
url = "http://127.0.0.1:${toString config.services.loki.configuration.server.http_listen_port}";
|
||||
}
|
||||
];
|
||||
};
|
||||
settings = {
|
||||
analytics.reporting_enabled = false;
|
||||
server = {
|
||||
domain = "graf.matri.cx";
|
||||
http_addr = "127.0.0.1";
|
||||
http_port = 7000;
|
||||
protocol = "http";
|
||||
root_Url = "http://192.168.0.130:7000";
|
||||
};
|
||||
smtp = {
|
||||
enabled = true;
|
||||
|
||||
from_address = "graf@matri.cx";
|
||||
host = "box.eversole.co:465";
|
||||
user = "graf@matri.cx";
|
||||
password = "$__file{${config.age.secrets.graf-email.path}}";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user