Skip to content

Instantly share code, notes, and snippets.

@LnL7
Last active February 11, 2017 18:42
Show Gist options
  • Save LnL7/d0c7371fe7e4d2b649d5dd5acb95841e to your computer and use it in GitHub Desktop.
Save LnL7/d0c7371fe7e4d2b649d5dd5acb95841e to your computer and use it in GitHub Desktop.
NixOS configuration snippet for netdata service
{ 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