Compare commits
5 commits
18a45773bb
...
007093abe2
Author | SHA1 | Date | |
---|---|---|---|
007093abe2 | |||
4cfde7f4ff | |||
9be6884e47 | |||
2cdaf65fb5 | |||
fb82c20260 |
1 changed files with 2 additions and 2 deletions
|
@ -7,9 +7,9 @@
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
inherit (lib.options) mkEnableOption;
|
inherit (lib.options) mkEnableOption;
|
||||||
|
|
||||||
cfg = config.modules.system.services.grafana;
|
cfg = config.modules.services.grafana;
|
||||||
in {
|
in {
|
||||||
options.modules.system.services.grafana.enable = mkEnableOption "Grafana, a graphing service";
|
options.modules.services.grafana.enable = mkEnableOption "Grafana, a graphing service";
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
networking.firewall.allowedTCPPorts = [config.services.grafana.settings.server.http_port];
|
networking.firewall.allowedTCPPorts = [config.services.grafana.settings.server.http_port];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue