Skip to content

Instantly share code, notes, and snippets.

@arianvp
Created April 25, 2019 13:33
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 arianvp/b071a866ae8d20b909e842bafe858c71 to your computer and use it in GitHub Desktop.
Save arianvp/b071a866ae8d20b909e842bafe858c71 to your computer and use it in GitHub Desktop.
paths."acme-${name}" = {
requiredBy = mkMerge [
mkIf config.services.nginx.enable "nginx.service"
mkIf config.services.lighttpd.enable "lighttpd.service"
];
before = mkMerge [
mkIf config.services.nginx.enable "nginx.service"
mkIf config.services.lighttpd.enable "lighttpd.service";
];
pathConfig.PathExists = "/var/lib/acme/${name}/key.pem";
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment