Added flaresolverr service and some other

This commit is contained in:
Julien Malka 2022-02-05 18:24:26 +01:00
parent 5545b88992
commit 53554b019b
No known key found for this signature in database
GPG key ID: 3C68E13964FEA07F
11 changed files with 333 additions and 1 deletions

32
modules/bruit/default.nix Normal file
View file

@ -0,0 +1,32 @@
{ lib, pkgs, config, ... }:
with lib;
let
cfg = config.luj.bruit;
port = 3500;
in
{
options.luj.bruit = {
enable = mkEnableOption "activate bruit monitoring";
nginx.enable = mkEnableOption "activate nginx";
nginx.subdomain = mkOption {
type = types.str;
};
};
config = mkIf cfg.enable (
mkMerge [{
services.grafana.enable = true;
services.grafana.port = port;
luj.influxdb.enable = true;
luj.influxdb.nginx = {
enable = true;
subdomain = "influxdb";
};
}
(mkIf cfg.nginx.enable (mkSubdomain cfg.nginx.subdomain port))]);
}