25 lines
469 B
Nix
25 lines
469 B
Nix
{ ... }:
|
|
{
|
|
_class = "clan.service";
|
|
manifest.name = "grafana";
|
|
manifest.description = "Platform for data analytics and monitoring";
|
|
manifest.categories = [ "System" ];
|
|
|
|
roles.default = {
|
|
|
|
perInstance.nixosModule =
|
|
{
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
{
|
|
services.grafana = {
|
|
enable = lib.mkDefault true;
|
|
};
|
|
|
|
clan.core.state.grafana.folders = [ config.services.grafana.dataDir ];
|
|
};
|
|
};
|
|
}
|