Compare commits
5 commits
007093abe2
...
18a45773bb
Author | SHA1 | Date | |
---|---|---|---|
18a45773bb | |||
92ba05f9cf | |||
00fa8006c0 | |||
60627d3594 | |||
5cb6dac8ea |
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.services.grafana;
|
cfg = config.modules.system.services.grafana;
|
||||||
in {
|
in {
|
||||||
options.modules.services.grafana.enable = mkEnableOption "Grafana, a graphing service";
|
options.modules.system.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