Skip to content

Instantly share code, notes, and snippets.

@RaghavSood
Created July 20, 2020 09:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RaghavSood/b671d79dcac3ae8991759d0a473bd4ce to your computer and use it in GitHub Desktop.
Save RaghavSood/b671d79dcac3ae8991759d0a473bd4ce to your computer and use it in GitHub Desktop.
{pkgs ? import<nixpkgs>, nodes, lib, ...}:
let
unstable = import <nixpkgs-unstable> {};
in
{
imports = [
<unstable/nixos/modules/services/monitoring/netdata.nix>
];
disabledModules = [ "services/monitoring/netdata.nix" ];
services.netdata = {
enable = true;
package = unstable.netdata;
};
networking.firewall.extraCommands = ''
iptables -A nixos-fw -s 167.99.64.211/32,192.168.1.0/24 -p tcp -m tcp --dport 19999 -m comment --comment netdata -j nixos-fw-accept
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment