diff options
| author | Rohit Singh <rsrohitsingh682@gmail.com> | 2024-10-03 23:42:10 +0530 |
|---|---|---|
| committer | Rohit Singh <rsrohitsingh682@gmail.com> | 2024-10-03 23:42:10 +0530 |
| commit | 239d802869a30bb45d4403e8f63a57a61f6910d9 (patch) | |
| tree | 2f0f35c64333b1c46839d95458dc388d756eb959 /tests/services-netdata.nix | |
| parent | 76559183801030451e200c90a1627c1d82bb4910 (diff) | |
netdata: add netdata service in nix-darwin.
Diffstat (limited to 'tests/services-netdata.nix')
| -rw-r--r-- | tests/services-netdata.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/services-netdata.nix b/tests/services-netdata.nix new file mode 100644 index 0000000..6759677 --- /dev/null +++ b/tests/services-netdata.nix @@ -0,0 +1,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 + ''; +} |
