2023-10-10 12:56:45 -06:00
|
|
|
{ lib, config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.services.jitterentropy-rngd;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.services.jitterentropy-rngd = {
|
|
|
|
enable =
|
|
|
|
lib.mkEnableOption "jitterentropy-rngd service configuration";
|
2023-11-30 11:03:14 -07:00
|
|
|
package = lib.mkPackageOption pkgs "jitterentropy-rngd" { };
|
2023-10-10 12:56:45 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
systemd.packages = [ cfg.package ];
|
|
|
|
systemd.services."jitterentropy".wantedBy = [ "basic.target" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
meta.maintainers = with lib.maintainers; [ thillux ];
|
|
|
|
}
|