change grafana to {name} everywhere*
This commit is contained in:
parent
961509ddc8
commit
739529caae
1 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
name = "grafana";
|
name = "grafana";
|
||||||
cfg = config.services.skynet.grafana;
|
cfg = config.services.skynet."${name}";
|
||||||
port = 4444;
|
port = 4444;
|
||||||
in {
|
in {
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -51,7 +51,7 @@ in {
|
||||||
|
|
||||||
services.grafana = {
|
services.grafana = {
|
||||||
enable = true;
|
enable = true;
|
||||||
domain = "grafana.skynet.ie";
|
domain = "${name}.skynet.ie";
|
||||||
port = cfg.port;
|
port = cfg.port;
|
||||||
addr = cfg.host.ip;
|
addr = cfg.host.ip;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue