Certbot: Difference between revisions
imported>Onny Add recommendation to prefer security.acme module |
imported>Onny Add module agreeTerms option |
||
Line 8: | Line 8: | ||
Install ''certbot'' application and enable ''systemd-timer'' for automated renewal of certificates | Install ''certbot'' application and enable ''systemd-timer'' for automated renewal of certificates | ||
{{file|/etc/nixos/configuration.nix|nix|<nowiki> | {{file|/etc/nixos/configuration.nix|nix|<nowiki> | ||
services.certbot | services.certbot = { | ||
enable = true; | |||
agreeTerms = true; | |||
}; | |||
</nowiki>}} | </nowiki>}} | ||
== Usage == | == Usage == | ||
Line 50: | Line 53: | ||
services.certbot = { | services.certbot = { | ||
enable = true; | enable = true; | ||
agreeTerms = true; | |||
package = pkgs.certbot.withPlugins (ps: with ps; [ certbot-dns-inwx ]); | package = pkgs.certbot.withPlugins (ps: with ps; [ certbot-dns-inwx ]); | ||
} | } |