Last active
February 11, 2017 18:42
-
-
Save LnL7/d0c7371fe7e4d2b649d5dd5acb95841e to your computer and use it in GitHub Desktop.
NixOS configuration snippet for netdata service
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
{ config, pkgs, ... }: | |
let | |
# Import unstable channel. | |
# sudo nix-channel --add http://nixos.org/channels/nixos-unstable nixos-unstable | |
unstable = import <nixos-unstable> {}; | |
in | |
{ | |
imports = | |
[ # Include netdata service from unstable channel. | |
<nixos-unstable/nixos/modules/services/monitoring/netdata.nix> | |
]; | |
nixpkgs.config.packageOverrides = pkgs: { | |
inherit (unstable) netdata; | |
}; | |
services.netdata.enable = true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment