1
0
Fork 0

Services: denormalize Netdata due to build issue

This commit is contained in:
Aires 2024-08-24 11:09:09 -04:00
parent c9cea6be4a
commit 16b2126033

View file

@ -53,14 +53,7 @@ in
}; };
config = lib.mkMerge [ config = lib.mkMerge [
(lib.mkIf cfg.enable { (lib.mkIf (cfg.enable && cfg.type == "parent") {
services.netdata = {
enable = true;
package = pkgs.unstable.netdataCloud;
enableAnalyticsReporting = false;
};
})
(lib.mkIf (cfg.type == "parent") {
services = { services = {
nginx.virtualHosts."${cfg.url}" = { nginx.virtualHosts."${cfg.url}" = {
useACMEHost = cfg.domain; useACMEHost = cfg.domain;
@ -83,6 +76,9 @@ in
}; };
netdata = { netdata = {
enable = true;
package = pkgs.unstable.netdataCloud;
enableAnalyticsReporting = false;
configDir = { configDir = {
# Enable nvidia-smi: https://nixos.wiki/wiki/Netdata#nvidia-smi # Enable nvidia-smi: https://nixos.wiki/wiki/Netdata#nvidia-smi
"python.d.conf" = pkgs.writeText "python.d.conf" '' "python.d.conf" = pkgs.writeText "python.d.conf" ''
@ -103,8 +99,11 @@ in
systemd.services.nginx.wants = [ config.systemd.services.netdata.name ]; systemd.services.nginx.wants = [ config.systemd.services.netdata.name ];
}) })
(lib.mkIf (cfg.type == "child") { (lib.mkIf (cfg.enable && cfg.type == "child") {
services.netdata = { services.netdata = {
enable = true;
package = pkgs.unstable.netdataCloud;
enableAnalyticsReporting = false;
# Disable web UI # Disable web UI
config = { config = {
global = { global = {