2023-11-16 04:20:00 +00:00
|
|
|
{ lib, config, pkgs, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.services.jitterentropy-rngd;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.services.jitterentropy-rngd = {
|
|
|
|
enable =
|
2024-04-21 15:54:59 +00:00
|
|
|
lib.mkEnableOption "jitterentropy-rngd service configuration";
|
2024-01-02 11:29:13 +00:00
|
|
|
package = lib.mkPackageOption pkgs "jitterentropy-rngd" { };
|
2023-11-16 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
systemd.packages = [ cfg.package ];
|
|
|
|
systemd.services."jitterentropy".wantedBy = [ "basic.target" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
meta.maintainers = with lib.maintainers; [ thillux ];
|
|
|
|
}
|