summaryrefslogtreecommitdiff
path: root/tests/services-netdata.nix
blob: 6759677d6c1560185807877ab8828193a1eaa10c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ config, lib, pkgs, ... }:

with lib;

let
  netdata = pkgs.runCommand "netdata-0.0.0" {} "mkdir $out";
in
{
  services.netdata = {
    enable = true;
    package = netdata;
  };

  test = ''
    echo >&2 "checking netdata service in launchd daemons"
    grep "netdata" ${config.out}/Library/LaunchDaemons/netdata.plist
    grep "${netdata}/bin/netdata" ${config.out}/Library/LaunchDaemons/netdata.plist
  '';
}