Skip to content

Commit

Permalink
Merge pull request #964 from kamushadenes/master
Browse files Browse the repository at this point in the history
Fix NextDNS arguments
  • Loading branch information
emilazy committed Jul 8, 2024
2 parents 0f89b73 + e2a8573 commit fabc653
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/services/nextdns/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ in {
launchd.daemons.nextdns = {
path = [ nextdns ];
serviceConfig.ProgramArguments =
[ "${pkgs.nextdns}/bin/nextdns" "run" (escapeShellArgs cfg.arguments) ];
[ "${pkgs.nextdns}/bin/nextdns" "run" ] ++ cfg.arguments;
serviceConfig.KeepAlive = true;
serviceConfig.RunAtLoad = true;
};
Expand Down
3 changes: 2 additions & 1 deletion tests/services-nextdns.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ in {
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
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
'';
}

0 comments on commit fabc653

Please sign in to comment.