mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
nextdns: fix argument handling
This commit is contained in:
parent
0f89b73f41
commit
e2a85731a0
2 changed files with 3 additions and 2 deletions
|
@ -31,7 +31,7 @@ in {
|
||||||
launchd.daemons.nextdns = {
|
launchd.daemons.nextdns = {
|
||||||
path = [ nextdns ];
|
path = [ nextdns ];
|
||||||
serviceConfig.ProgramArguments =
|
serviceConfig.ProgramArguments =
|
||||||
[ "${pkgs.nextdns}/bin/nextdns" "run" (escapeShellArgs cfg.arguments) ];
|
[ "${pkgs.nextdns}/bin/nextdns" "run" ] ++ cfg.arguments;
|
||||||
serviceConfig.KeepAlive = true;
|
serviceConfig.KeepAlive = true;
|
||||||
serviceConfig.RunAtLoad = true;
|
serviceConfig.RunAtLoad = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -12,6 +12,7 @@ in {
|
||||||
echo >&2 "checking nextdns service in ~/Library/LaunchDaemons"
|
echo >&2 "checking nextdns service in ~/Library/LaunchDaemons"
|
||||||
grep "org.nixos.nextdns" ${config.out}/Library/LaunchDaemons/org.nixos.nextdns.plist
|
grep "org.nixos.nextdns" ${config.out}/Library/LaunchDaemons/org.nixos.nextdns.plist
|
||||||
grep "/bin/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
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue