mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-26 23:35:36 +00:00
d021baa1bb
required because they don't share all attributes
17 lines
289 B
Nix
17 lines
289 B
Nix
{ config, pkgs, lib, ... }: {
|
|
|
|
options.netdata.enable = lib.mkEnableOption "Netdata metrics.";
|
|
|
|
config = lib.mkIf config.netdata.enable {
|
|
|
|
services.netdata = {
|
|
enable = true;
|
|
|
|
# Disable local dashboard (unsecured)
|
|
config = { web.mode = "none"; };
|
|
};
|
|
|
|
};
|
|
|
|
}
|