Merge pull request #247 from happysalada/fix_nextdns

nextdns: add to modulelist
This commit is contained in:
Daiderd Jordan 2020-12-06 15:21:49 +01:00 committed by GitHub
commit 57df59ea2d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 4 deletions

View file

@ -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
'';
}