Created
July 20, 2020 09:54
-
-
Save RaghavSood/b671d79dcac3ae8991759d0a473bd4ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{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