nixpkgs-suyu/nixos/modules/services
Andreas Rammhold 5e602f88d1
nixos/modules/services/networking/unbound: update systemd unit
Previously we just applied a very minimal set of restrictions and
trusted unbound to properly drop root privs and capabilities.

With this change I am (for the most part) just using the upstream
example unit file for unbound. The main difference is that we start
unbound was `unbound` user with the required capabilities instead of
letting unbound do the chroot & uid/gid changes.

The upstream unit configuration this is based on is a lot stricter with
all kinds of permissions then our previous variant. It also came with
the default of having the `Type` set to `notify`, therefore we are also
using the `unbound-with-systemd` package here. Unbound will start up,
read the configuration files and start listening on the configured ports
before systemd will declare the unit "running". This will likely help
with startup order and the occasional race condition during system
activation where the DNS service is started but not yet ready to answer
queries.

Aditionally to the much stricter runtime environmet I removed the
`/dev/urandom` mount lines we previously had in the code (that would
randomly fail during `stop`-phase).

The `preStart` script is now only required if we enabled the trust
anchor updates (which are still enabled by default).

Another beneefit of the refactoring is that we can now issue reloads via
either `pkill -HUP unbound` or `systemctl reload unbound` to reload the
running configuration without taking the daemon offline. A prerequisite
of this was that unbound configuration is available on a well known path
on the file system. I went for /etc/unbound/unbound.conf as that is the
default in the CLI tooling which in turn enables us to use
`unbound-control` without passing a custom configuration location.
2020-11-03 19:21:24 +01:00
..
admin salt: remove aneeshusa and add Flakebi as maintainer 2020-10-23 19:48:48 +02:00
amqp
audio Merge pull request #95599 from doronbehar/module/mpd/passwordFile 2020-09-11 09:11:13 +03:00
backup Merge pull request #79759 from lopsided98/syncoid-no-root 2020-10-25 10:40:33 -04:00
cluster kubernetes: fix certificate generation 2020-09-10 13:07:32 +02:00
computing nixos/modules: remove trailing whitespace 2020-08-07 14:45:39 +01:00
continuous-integration nixos/modules: fix systemd start rate-limits 2020-10-31 01:35:56 -07:00
databases nixos/modules: fix systemd start rate-limits 2020-10-31 01:35:56 -07:00
desktops Merge pull request #101516 from worldofpeace/gnome-polishing 2020-10-25 18:41:34 -04:00
development nixos/blackfire: init 2020-10-07 10:44:54 +02:00
editors Fix typo in services/editors/emacs documentation 2020-08-27 16:58:52 -04:00
games nixos/terraria: allow dataDir to be configured (#89033) 2020-09-05 16:37:52 -04:00
hardware Merge pull request #102237 from oxzi/tlp-deprecation-note 2020-11-01 11:46:11 +01:00
logging Merge pull request #89785 from buckley310/logstash 2020-08-22 14:07:20 +02:00
mail nixos/modules: fix systemd start rate-limits 2020-10-31 01:35:56 -07:00
misc nixos/modules: fix systemd start rate-limits 2020-10-31 01:35:56 -07:00
monitoring nixos/prometheus: Support environmentFile (#97933) 2020-10-31 20:52:13 +01:00
network-filesystems nixos/modules: fix systemd start rate-limits 2020-10-31 01:35:56 -07:00
networking nixos/modules/services/networking/unbound: update systemd unit 2020-11-03 19:21:24 +01:00
printing
scheduling nixos/marathon: remove module 2020-08-15 16:59:58 +02:00
search
security nixos/modules: fix systemd start rate-limits 2020-10-31 01:35:56 -07:00
system nixos/dbus: re-add a dummy socketActivated option 2020-10-24 23:01:00 +02:00
torrent nixos/transmission: point at the settings dir in cfg.home. 2020-10-30 19:03:42 -07:00
ttys
video nixos/epgstation: add module 2020-09-12 00:34:47 +09:00
wayland nixos/cage: supply pamEnvironment 2020-08-27 10:11:45 -05:00
web-apps Merge pull request #101553 from Mic92/nextcloud 2020-11-01 16:10:18 +01:00
web-servers nginx: add a warning that nginx's basic auth isn't very good. 2020-11-02 08:16:01 -05:00
x11 Merge pull request #99019 from sumnerevans/master 2020-11-03 01:00:40 +01:00