mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-09 22:12:56 +00:00
fix: paren required on function
This commit is contained in:
parent
4b0d68089a
commit
b599162090
@ -20,16 +20,15 @@
|
||||
webExternalUrl = lib.mkIf config.services.grafana.enable
|
||||
"https://${config.prometheusServer}";
|
||||
# Web config file: https://prometheus.io/docs/prometheus/latest/configuration/https/
|
||||
webConfigFile =
|
||||
lib.mkIf config.services.grafana.enable (pkgs.formats.yaml { }).generate
|
||||
"webconfig.yml" {
|
||||
webConfigFile = lib.mkIf config.services.grafana.enable
|
||||
((pkgs.formats.yaml { }).generate "webconfig.yml" {
|
||||
basic_auth_users = {
|
||||
# Generate password: htpasswd -nBC 10 "" | tr -d ':\n'
|
||||
# Encrypt and place in private/prometheus.age
|
||||
"prometheus" =
|
||||
"$2y$10$r7FWHLHTGPAY312PdhkPEuvb05aGn9Nk1IO7qtUUUjmaDl35l6sLa";
|
||||
};
|
||||
};
|
||||
});
|
||||
remoteWrite = lib.mkIf (!config.services.grafana.enable) [{
|
||||
name = config.networking.hostName;
|
||||
url = "https://${config.prometheusServer}";
|
||||
|
Loading…
Reference in New Issue
Block a user