From 0b5fd3b7847445f3683ff60c8b896a7f2adc3b0e Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Wed, 6 Jan 2021 03:44:26 +0100 Subject: [PATCH] qemu-guest: remove security.rngd setting Since release 20.09 `rngd.enable` defaults to false, so this setting is redundant. Also fix the `qemu-quest` section of the manual that incorrectly claimed that `rngd` was enabled. --- nixos/doc/manual/configuration/profiles/qemu-guest.xml | 5 ++--- nixos/modules/profiles/qemu-guest.nix | 4 +--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/nixos/doc/manual/configuration/profiles/qemu-guest.xml b/nixos/doc/manual/configuration/profiles/qemu-guest.xml index 5d055c45d2d8..3ed97b94b510 100644 --- a/nixos/doc/manual/configuration/profiles/qemu-guest.xml +++ b/nixos/doc/manual/configuration/profiles/qemu-guest.xml @@ -11,8 +11,7 @@ - It makes virtio modules available on the initrd, sets the system time from - the hardware clock to work around a bug in qemu-kvm, and - enables rngd. + It makes virtio modules available on the initrd and sets the system time from + the hardware clock to work around a bug in qemu-kvm. diff --git a/nixos/modules/profiles/qemu-guest.nix b/nixos/modules/profiles/qemu-guest.nix index 0ea70107f717..d4335edfcf2d 100644 --- a/nixos/modules/profiles/qemu-guest.nix +++ b/nixos/modules/profiles/qemu-guest.nix @@ -1,7 +1,7 @@ # Common configuration for virtual machines running under QEMU (using # virtio). -{ lib, ... }: +{ ... }: { boot.initrd.availableKernelModules = [ "virtio_net" "virtio_pci" "virtio_mmio" "virtio_blk" "virtio_scsi" "9p" "9pnet_virtio" ]; @@ -14,6 +14,4 @@ # to the *boot time* of the host). hwclock -s ''; - - security.rngd.enable = lib.mkDefault false; }