{ config, lib, pkgs, ... }: let cfg = config.orbekk.fcgiwrap; aliases = import ../data/aliases.nix; in { options = { orbekk.fcgiwrap = { enable = lib.mkEnableOption "Enable monitoring server"; }; }; config = lib.mkIf cfg.enable { services.fcgiwrap = { enable = true; socketType = "unix"; # socketType = "tcp"; # socketAddress = "0.0.0.0:${toString fcgiPort}"; user = "fcgi"; group = "fcgi"; }; }; }