3e11ff6e0d
This option allows us to turn off stateful generation of Diffie-Hellman parameters, which in some way is still stateful as the generated DH params file is non-deterministic. However what we can avoid with this is to have an increased surface for failures during system startup, because generation of the parameters is done during build-time. Another advantage of this is that we no longer need to take care of cleaning up the files that are no longer used and in my humble opinion I would have preferred that #11505 (which puts the dhparams in the Nix store) would have been merged instead of #22634 (which we have now). Luckily we can still change that and this change gives the user the option to put the dhparams into the Nix store. Beside of the more obvious advantages pointed out here, this also effects test runtime if more services are starting to use this (for example see #39507 and #39288), because generating DH params could take a long time depending on the bit size which adds up to test runtime. If we generate the DH params in a separate derivation, subsequent test runs won't need to wait for DH params generation during bootup. Of course, tests could still mock this by force-disabling the service and adding a service or activation script that places pre-generated DH params in /var/lib/dhparams but this would make tests less readable and the workaround would have to be made for each test affected. Note that the 'stateful' option is still true by default so that we are backwards-compatible with existing systems. Signed-off-by: aszlig <aszlig@nix.build> Cc: @Ekleog, @abbradar, @fpletz |
||
---|---|---|
.. | ||
common | ||
hocker-fetchdocker | ||
initrd-network-ssh | ||
krb5 | ||
kubernetes | ||
acme.nix | ||
ammonite.nix | ||
atd.nix | ||
avahi.nix | ||
beegfs.nix | ||
bittorrent.nix | ||
blivet.nix | ||
boot-stage1.nix | ||
boot.nix | ||
borgbackup.nix | ||
buildbot.nix | ||
cadvisor.nix | ||
cassandra.nix | ||
ceph.nix | ||
chromium.nix | ||
cjdns.nix | ||
cloud-init.nix | ||
containers-bridge.nix | ||
containers-extra_veth.nix | ||
containers-hosts.nix | ||
containers-imperative.nix | ||
containers-ipv4.nix | ||
containers-ipv6.nix | ||
containers-macvlans.nix | ||
containers-physical_interfaces.nix | ||
containers-portforward.nix | ||
containers-reloadable.nix | ||
containers-restart_networking.nix | ||
containers-tmpfs.nix | ||
couchdb.nix | ||
deluge.nix | ||
dhparams.nix | ||
dnscrypt-proxy.nix | ||
docker-edge.nix | ||
docker-registry.nix | ||
docker-tools-overlay.nix | ||
docker-tools.nix | ||
docker.nix | ||
dovecot.nix | ||
ec2.nix | ||
ecryptfs.nix | ||
elk.nix | ||
emacs-daemon.nix | ||
env.nix | ||
etcd-cluster.nix | ||
etcd.nix | ||
ferm.nix | ||
firefox.nix | ||
firewall.nix | ||
flannel.nix | ||
fleet.nix | ||
fwupd.nix | ||
gitlab.nix | ||
gitolite.nix | ||
gjs.nix | ||
gnome3-gdm.nix | ||
gnome3.nix | ||
gocd-agent.nix | ||
gocd-server.nix | ||
grafana.nix | ||
graphite.nix | ||
haka.nix | ||
hardened.nix | ||
hibernate.nix | ||
home-assistant.nix | ||
hound.nix | ||
hydra.nix | ||
i3wm.nix | ||
iftop.nix | ||
influxdb.nix | ||
initrd-network.nix | ||
installer.nix | ||
ipfs.nix | ||
ipv6.nix | ||
jenkins.nix | ||
kafka_0_9.nix | ||
kafka_0_10.nix | ||
kafka_0_11.nix | ||
kafka_1_0.nix | ||
kernel-copperhead.nix | ||
kernel-latest.nix | ||
kernel-lts.nix | ||
kexec.nix | ||
keymap.nix | ||
ldap.nix | ||
leaps.nix | ||
lightdm.nix | ||
login.nix | ||
make-test.nix | ||
mathics.nix | ||
matrix-synapse.nix | ||
mesos.nix | ||
mesos_test.py | ||
minio.nix | ||
misc.nix | ||
mongodb.nix | ||
mpich-example.c | ||
mumble.nix | ||
munin.nix | ||
mutable-users.nix | ||
mysql-backup.nix | ||
mysql-replication.nix | ||
mysql.nix | ||
nat.nix | ||
netdata.nix | ||
networking-proxy.nix | ||
networking.nix | ||
nexus.nix | ||
nfs.nix | ||
nghttpx.nix | ||
nginx.nix | ||
nix-ssh-serve.nix | ||
novacomd.nix | ||
nsd.nix | ||
openldap.nix | ||
openssh.nix | ||
owncloud.nix | ||
pam-oath-login.nix | ||
panamax.nix | ||
partition.nix | ||
peerflix.nix | ||
pgjwt.nix | ||
pgmanage.nix | ||
phabricator.nix | ||
php-pcre.nix | ||
plasma5.nix | ||
plotinus.nix | ||
postgis.nix | ||
postgresql.nix | ||
powerdns.nix | ||
predictable-interface-names.nix | ||
printing.nix | ||
prometheus.nix | ||
prosody.nix | ||
proxy.nix | ||
quagga.nix | ||
quake3.nix | ||
rabbitmq.nix | ||
radicale.nix | ||
riak.nix | ||
rspamd.nix | ||
run-in-machine.nix | ||
rxe.nix | ||
samba.nix | ||
sddm.nix | ||
simple.nix | ||
slim.nix | ||
slurm.nix | ||
smokeping.nix | ||
snapper.nix | ||
ssh-keys.nix | ||
statsd.nix | ||
strongswan-swanctl.nix | ||
subversion.nix | ||
sudo.nix | ||
switch-test.nix | ||
systemd.nix | ||
taskserver.nix | ||
testdb.sql | ||
timezone.nix | ||
tomcat.nix | ||
trac.nix | ||
transmission.nix | ||
udisks2.nix | ||
vault.nix | ||
virtualbox.nix | ||
wordpress.nix | ||
xautolock.nix | ||
xfce.nix | ||
xmonad.nix | ||
xrdp.nix | ||
yabar.nix | ||
zfs.nix | ||
zookeeper.nix |