Compare commits

..

5 commits

Author SHA1 Message Date
007093abe2 forgejo/module.nix: inherit mkEnableOption 2025-04-18 14:37:14 +02:00
4cfde7f4ff tower/configuration.nix: enable grafana 2025-04-18 14:36:40 +02:00
9be6884e47 tower/configuration.nix: set timeout duration of 30 2025-04-18 14:36:23 +02:00
2cdaf65fb5 boot/module.nix: add timeout option
On desktop systems, it is convenient to have the timeout
at zero, and just spam space when trying to start
a previous generation. On servers however, it is preferable
to have some time to choose the generation, which is
quite convenient if you have to acess is remotely via a
web interface, which tend to be quite slow and unresponsive.
2025-04-18 14:34:03 +02:00
fb82c20260 services/grafana: init 2025-04-18 14:28:47 +02:00

View file

@ -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];