mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-15 17:51:01 +00:00
20 lines
413 B
Nix
20 lines
413 B
Nix
|
{ 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
|
||
|
'';
|
||
|
}
|