Skip to content

Instantly share code, notes, and snippets.

@alyssais
Created October 30, 2018 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alyssais/641c1044e24419b03d169b6998717a8f to your computer and use it in GitHub Desktop.
Save alyssais/641c1044e24419b03d169b6998717a8f to your computer and use it in GitHub Desktop.
{ ... }:
{
launchd.user.agents.dnscrypt-proxy = {
serviceConfig.RunAtLoad = true;
serviceConfig.KeepAlive = true;
serviceConfig.ProgramArguments = [
"${pkgs.dnscrypt-proxy2}/bin/dnscrypt-proxy"
"-config"
(toString (pkgs.writeText "dnscrypt-proxy.toml" ''
server_names = ["qyliss"]
listen_addresses = ["127.0.0.1:5053"]
ignore_system_dns = true
[static.qyliss]
stamp = "sdns://AgcAAAAAAAAADTg1LjExOS44Mi4xMDgACnF5bGlzcy5uZXQKL2Rucy1xdWVyeQ"
''))
];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment