1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-15 17:51:01 +00:00
nix-darwin/tests/services-nextdns.nix

19 lines
644 B
Nix
Raw Normal View History

2020-11-27 02:28:26 +00:00
{ config, lib, pkgs, ... }:
with lib;
let nextdns = pkgs.runCommand "nextdns-0.0.0" { } "mkdir $out";
in {
services.nextdns.enable = true;
services.nextdns.arguments = [ "-config" "10.0.3.0/24=abcdef" ];
test = ''
echo >&2 "checking nextdns service in ~/Library/LaunchDaemons"
grep "org.nixos.nextdns" ${config.out}/Library/LaunchDaemons/org.nixos.nextdns.plist
grep "/bin/nextdns" ${config.out}/Library/LaunchDaemons/org.nixos.nextdns.plist
2024-07-08 19:36:31 +00:00
grep -- "-config" ${config.out}/Library/LaunchDaemons/org.nixos.nextdns.plist
grep "10.0.3.0/24=abcdef" ${config.out}/Library/LaunchDaemons/org.nixos.nextdns.plist
2020-11-27 02:28:26 +00:00
'';
}