nixpkgs-suyu/nixos/modules/services
Lucas Savva 982c5a1f0e
nixos/acme: Restructure module
- Use an acme user and group, allow group override only
- Use hashes to determine when certs actually need to regenerate
- Avoid running lego more than necessary
- Harden permissions
- Support "systemctl clean" for cert regeneration
- Support reuse of keys between some configuration changes
- Permissions fix services solves for previously root owned certs
- Add a note about multiple account creation and emails
- Migrate extraDomains to a list
- Deprecate user option
- Use minica for self-signed certs
- Rewrite all tests

I thought of a few more cases where things may go wrong,
and added tests to cover them. In particular, the web server
reload services were depending on the target - which stays alive,
meaning that the renewal timer wouldn't be triggering a reload
and old certs would stay on the web servers.

I encountered some problems ensuring that the reload took place
without accidently triggering it as part of the test. The sync
commands I added ended up being essential and I'm not sure why,
it seems like either node.succeed ends too early or there's an
oddity of the vm's filesystem I'm not aware of.

- Fix duplicate systemd rules on reload services

Since useACMEHost is not unique to every vhost, if one cert
was reused many times it would create duplicate entries in
${server}-config-reload.service for wants, before and
ConditionPathExists
2020-09-02 19:22:43 +01:00
..
admin
amqp treewide: add bool type to enable options, or make use of mkEnableOption 2020-04-21 08:55:36 +02:00
audio Merge pull request #86236 from ThibautMarty/fix-nullOr-types 2020-08-26 18:21:29 +02:00
backup nixos/modules: remove trailing whitespace 2020-08-07 14:45:39 +01:00
cluster The systemd unit for k3s should differ between agents and servers 2020-04-23 07:55:23 +02:00
computing nixos/modules: remove trailing whitespace 2020-08-07 14:45:39 +01:00
continuous-integration nixos/hercules-ci-agent: init 2020-08-23 20:13:15 +02:00
databases nixos/postgresql: replace extraConfig option with settings option 2020-08-26 17:06:48 -04:00
desktops nixos/espanso: init module (#93483) 2020-08-24 20:37:33 -04:00
development jupyterhub: fix authenticator configuration 2020-08-25 13:50:18 +02:00
editors Fix typo in services/editors/emacs documentation 2020-08-27 16:58:52 -04:00
games nixos/modules: remove trailing whitespace 2020-08-07 14:45:39 +01:00
hardware Merge pull request #86236 from ThibautMarty/fix-nullOr-types 2020-08-26 18:21:29 +02:00
logging Merge pull request #89785 from buckley310/logstash 2020-08-22 14:07:20 +02:00
mail nixos/dovecot: Improve mailboxes type 2020-08-18 14:25:51 +02:00
misc Revert "nixos/nix-daemon.nix: assert distributedBuilds and buildMachines!=[]" 2020-08-29 22:39:24 -05:00
monitoring Merge pull request #87700 from serokell/mkaito/upstream/prometheus-port 2020-08-23 09:29:01 +02:00
network-filesystems Merge pull request #86236 from ThibautMarty/fix-nullOr-types 2020-08-26 18:21:29 +02:00
networking nixos/acme: Restructure module 2020-09-02 19:22:43 +01:00
printing nixos/printing: make access to web-interface configurable 2020-04-25 19:48:34 +02:00
scheduling nixos/marathon: remove module 2020-08-15 16:59:58 +02:00
search
security Merge pull request #96686 from nixy/add/tor-package-option 2020-08-30 23:02:37 +02:00
system nixos: remove StandardOutput=syslog, StandardError=syslog lines 2020-08-13 18:49:15 +02:00
torrent Merge pull request #95522 from doronbehar/fix/transmission 2020-08-17 19:54:48 +01:00
ttys
video video/mirakurun: add module 2020-08-11 13:52:17 +09:00
wayland nixos/cage: supply pamEnvironment 2020-08-27 10:11:45 -05:00
web-apps Merge pull request #95678 from helsinki-systems/upd/sogo 2020-08-26 00:04:36 +02:00
web-servers nixos/acme: Restructure module 2020-09-02 19:22:43 +01:00
x11 Merge pull request #95986 from turboMaCk/imwheel-service 2020-08-22 16:51:48 +02:00