Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

services/dnscrypt-proxy: init #1343

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

r17x
Copy link

@r17x r17x commented Feb 17, 2025

Hello!

I have been using dnscrypt-proxy with nix-darwin on my own configuration. I just want to start contribution in nix-darwin.

Thank you

@r17x r17x force-pushed the feat/dnscrypt-proxy branch from ea77b46 to 30922eb Compare February 18, 2025 10:56
@r17x r17x requested a review from Enzime February 18, 2025 10:57
Comment on lines +46 to +54
launchd.daemons.dnscrypt-proxy = {
script = ''
${lib.getExe' cfg.package "dnscrypt-proxy"} -config ${configFile}
'';
serviceConfig = {
RunAtLoad = true;
KeepAlive = true;
};
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have its own user assigned and run as that user; there’s no reason for dnscrypt-proxy to run as root. See e.g. modules/services/monitoring/prometheus-node-exporter.nix for an example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants