summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/services-nextdns.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/services-nextdns.nix b/tests/services-nextdns.nix
new file mode 100644
index 0000000..4d6224f
--- /dev/null
+++ b/tests/services-nextdns.nix
@@ -0,0 +1,17 @@
+{ 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
+ grep "'-config' '10.0.3.0/24=abcdef'" ${config.out}/Library/LaunchDaemons/org.nixos.nextdns.plist
+ '';
+}