Merge pull request #247 from happysalada/fix_nextdns
nextdns: add to modulelist
This commit is contained in:
commit
57df59ea2d
4 changed files with 21 additions and 4 deletions
17
tests/services-nextdns.nix
Normal file
17
tests/services-nextdns.nix
Normal 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
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue