Skip to content

Instantly share code, notes, and snippets.

@alyssais
Created December 14, 2018 15:14
Show Gist options
  • Save alyssais/e756e730426a8b74664877c459ddaf45 to your computer and use it in GitHub Desktop.
Save alyssais/e756e730426a8b74664877c459ddaf45 to your computer and use it in GitHub Desktop.
{ pkgs, ... }:
{
security.acme.certs."qyliss.net" = {
email = "hi@alyssa.is";
postRun = "systemctl reload nginx.service";
webroot = "/var/lib/acme/acme-challenge";
};
services.nginx.enable = true;
services.nginx.config = ''
events {}
stream {
server {
listen 6697 ssl;
ssl_certificate /var/lib/acme/qyliss.net/fullchain.pem;
ssl_certificate_key /var/lib/acme/qyliss.net/key.pem;
proxy_pass 127.0.0.1:6667;
}
}
'';
services.znc.enable = true;
services.znc.useLegacyConfig = false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment