nixos/services.haveged: remove `with lib;`

Changed files
+4 -7
nixos
modules
services
security
+4 -7
nixos/modules/services/security/haveged.nix
···
pkgs,
...
}:
-
-
with lib;
-
let
cfg = config.services.haveged;
···
services.haveged = {
-
enable = mkEnableOption ''
haveged entropy daemon, which refills /dev/random when low.
NOTE: does nothing on kernels newer than 5.6
'';
# source for the note https://github.com/jirka-h/haveged/issues/57
-
refill_threshold = mkOption {
-
type = types.int;
default = 1024;
description = ''
The number of bits of available entropy beneath which
···
};
-
config = mkIf cfg.enable {
# https://github.com/jirka-h/haveged/blob/a4b69d65a8dfc5a9f52ff8505c7f58dcf8b9234f/contrib/Fedora/haveged.service
systemd.services.haveged = {
···
pkgs,
...
}:
let
cfg = config.services.haveged;
···
services.haveged = {
+
enable = lib.mkEnableOption ''
haveged entropy daemon, which refills /dev/random when low.
NOTE: does nothing on kernels newer than 5.6
'';
# source for the note https://github.com/jirka-h/haveged/issues/57
+
refill_threshold = lib.mkOption {
+
type = lib.types.int;
default = 1024;
description = ''
The number of bits of available entropy beneath which
···
};
+
config = lib.mkIf cfg.enable {
# https://github.com/jirka-h/haveged/blob/a4b69d65a8dfc5a9f52ff8505c7f58dcf8b9234f/contrib/Fedora/haveged.service
systemd.services.haveged = {