nix-config/modules/netdata/default.nix
2025-02-23 15:48:43 +01:00

29 lines
686 B
Nix

{ lib, pkgs, config, ... }: let
inherit (lib) mkIf;
inherit (config) conf;
in mkIf conf.netdata.enable {
services.nginx = {
virtualHosts = {
"netdata.twoneis.site" = {
useACMEHost = "twoneis.site";
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:19999";
proxyWebsockets = true;
recommendedProxySettings = true;
};
};
};
};
services.netdata = {
enable = true;
package = pkgs.netdata.override { withCloudUi = true; };
config.global = {
"memory mode" = "ram";
"debug log" = "none";
"access log" = "none";
"error log" = "syslog";
};
};
}