nixpkgs-suyu/nixos/modules
aszlig 3e11ff6e0d
nixos/dhparams: Introduce a 'stateful' option
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
2018-04-26 08:04:50 +02:00
..
config treewide: isArm -> isAarch32 2018-04-25 15:28:55 -04:00
hardware Merge branch 'master' into staging 2018-04-10 09:13:36 +02:00
i18n/input-method
installer Merge pull request #39342 from samueldr/fix/nixos-enter-efivarfs 2018-04-23 21:42:12 +00:00
misc nixos: documentation: implement documentation.dev.enable option 2018-04-23 15:08:58 +02:00
profiles Merge pull request #38114 from oxij/nixos/doc-module 2018-04-05 07:09:32 +00:00
programs nixos: enable bash command completion by default 2018-04-13 18:36:51 +02:00
security nixos/dhparams: Introduce a 'stateful' option 2018-04-26 08:04:50 +02:00
services gitlab module: update to gitlab 10.7 2018-04-26 00:15:24 +02:00
system raspberrypi-bootloader: Adds firmwareConfig config option 2018-04-22 18:27:17 +03:00
tasks lxd: 2.16 -> 3.0.0 2018-04-14 11:02:24 +01:00
testing
virtualisation treewide: isArm -> isAarch32 2018-04-25 15:28:55 -04:00
module-list.nix Revert "gitlab: disable" 2018-04-26 00:15:24 +02:00
rename.nix Merge pull request #39048 from oxij/nixos/fix-rename-bugs 2018-04-22 17:46:09 +00:00