nixpkgs/nixos/modules
Peter Simons 86d299bc6e nixos: add config.services.openssh.moduliFile option so that users can replace the default file from OpenSSH
The man page for ssh-keygen(1) has a section "MODULI GENERATION" that describes
how to generate your own moduli file. The following script might also be helpful:

 | #! /usr/bin/env bash
 |
 | moduliFiles=()
 |
 | generateModuli()
 | {
 |   ssh-keygen -G "moduli-$1.candidates" -b "$1"
 |   ssh-keygen -T "moduli-$1" -f "moduli-$1.candidates"
 |   rm "moduli-$1.candidates"
 | }
 |
 | for (( i=0 ; i <= 16 ; ++i )); do
 |   let bitSize="2048 + i * 128"
 |   generateModuli "$bitSize" &
 |   moduliFiles+=( "moduli-$bitSize" )
 | done
 | wait
 |
 | echo >moduli "# Time Type Tests Tries Size Generator Modulus"
 | cat >>moduli "${moduliFiles[@]}"
 | rm "${moduliFiles[@]}"

Note that generating moduli takes a long time, i.e. several hours on a fast
machine!

This patch resolves https://github.com/NixOS/nixpkgs/pull/5870.
2015-05-22 16:28:45 +02:00
..
config Remove sysvtools from the system path 2015-04-20 11:33:42 +02:00
hardware nvidia: 346.47 -> 346.59 2015-04-07 13:24:55 -07:00
installer nixos-checkout: Add nixpkgs-channels as a remote 2015-05-20 14:16:36 +02:00
misc nixos: add bird module 2015-05-19 15:42:24 +02:00
profiles nixos.system_tarball_pc: Fix evaluation 2015-04-28 17:15:02 +02:00
programs Add kbdlight package and setuid wrapper 2015-05-11 13:23:01 +08:00
security grsecurity: Update stable and test patches 2015-05-11 02:45:38 +02:00
services nixos: add config.services.openssh.moduliFile option so that users can replace the default file from OpenSSH 2015-05-22 16:28:45 +02:00
system Apply some overrides to upstream systemd units 2015-05-11 12:43:35 +02:00
tasks Typo 2015-04-20 16:12:28 +02:00
testing
virtualisation azure-image: common: add sg3_utils 2015-05-20 13:25:01 +03:00
module-list.nix nixos: add bird module 2015-05-19 15:42:24 +02:00
rename.nix Make environment.checkConfigurationOptions an alias 2015-04-10 16:11:07 +02:00