nixos/rngd: remove file, move warning to rename.nix

This commit is contained in:
h7x4
2025-10-19 21:21:24 +09:00
parent df240560c4
commit 5252726226
3 changed files with 6 additions and 22 deletions

View File

@@ -397,7 +397,6 @@
./security/pam_mount.nix ./security/pam_mount.nix
./security/please.nix ./security/please.nix
./security/polkit.nix ./security/polkit.nix
./security/rngd.nix
./security/rtkit.nix ./security/rtkit.nix
./security/soteria.nix ./security/soteria.nix
./security/sudo-rs.nix ./security/sudo-rs.nix

View File

@@ -411,6 +411,12 @@ in
(mkRemovedOptionModule [ "services" "simplesamlphp" ] '' (mkRemovedOptionModule [ "services" "simplesamlphp" ] ''
services.simplesamlphp has been vulnerable and unmaintained in nixpkgs. services.simplesamlphp has been vulnerable and unmaintained in nixpkgs.
'') '')
(mkRemovedOptionModule [ "security" "rngd" ] ''
rngd is not necessary for any device that the kernel recognises
as an hardware RNG, as it will automatically run the krngd task
to periodically collect random data from the device and mix it
into the kernel's RNG.
'')
# Do NOT add any option renames here, see top of the file # Do NOT add any option renames here, see top of the file
]; ];
} }

View File

@@ -1,21 +0,0 @@
{ lib, ... }:
let
removed =
k:
lib.mkRemovedOptionModule [
"security"
"rngd"
k
];
in
{
imports = [
(removed "enable" ''
rngd is not necessary for any device that the kernel recognises
as an hardware RNG, as it will automatically run the krngd task
to periodically collect random data from the device and mix it
into the kernel's RNG.
'')
(removed "debug" "The rngd module was removed, so its debug option does nothing.")
];
}