'grafana' is under 'services'

This commit is contained in:
niten 2023-12-09 21:07:05 -08:00
parent 2cf0416458
commit 4ae833c410
1 changed files with 4 additions and 4 deletions

View File

@ -65,18 +65,18 @@ in {
description = "Host of the OAuth server."; description = "Host of the OAuth server.";
}; };
oauth.client-id = mkOption { client-id = mkOption {
type = str; type = str;
description = "Path to file containing the Grafana OAuth client ID."; description = "Path to file containing the Grafana OAuth client ID.";
}; };
oauth.client-secret = mkOption { client-secret = mkOption {
type = str; type = str;
description = description =
"Path to file containing the Grafana OAuth client secret."; "Path to file containing the Grafana OAuth client secret.";
}; };
oauth.slug = mkOption { slug = mkOption {
type = str; type = str;
description = "The application slug on the OAuth server."; description = "The application slug on the OAuth server.";
}; };
@ -88,7 +88,7 @@ in {
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
grafana = { services.grafana = {
enable = true; enable = true;
dataDir = "${cfg.state-directory}/data"; dataDir = "${cfg.state-directory}/data";
settings = { settings = {