hosts/library: extract grafana config

This commit is contained in:
2025-06-02 22:48:48 +01:00
parent 0cda947ca5
commit b4ef349c9c
2 changed files with 17 additions and 11 deletions

View File

@ -3,6 +3,7 @@
{
imports = [
./hardware-configuration.nix
./grafana.nix
../server.nix
];
@ -46,17 +47,6 @@
enable = true;
};
services.grafana = {
enable = true;
settings = {
server = {
domain = "library.mesh.vimium.net";
http_addr = "0.0.0.0";
http_port = 3000;
};
};
};
services.prometheus = {
enable = true;
port = 9001;

16
hosts/library/grafana.nix Normal file
View File

@ -0,0 +1,16 @@
{
...
}:
{
services.grafana = {
enable = true;
settings = {
server = {
domain = "library.mesh.vimium.net";
http_addr = "0.0.0.0";
http_port = 3000;
};
};
};
}