587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
18 lines
481 B
Nix
18 lines
481 B
Nix
{ lib, config, pkgs, ... }:
|
|
let
|
|
cfg = config.services.jitterentropy-rngd;
|
|
in
|
|
{
|
|
options.services.jitterentropy-rngd = {
|
|
enable =
|
|
lib.mkEnableOption "jitterentropy-rngd service configuration";
|
|
package = lib.mkPackageOption pkgs "jitterentropy-rngd" { };
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
systemd.packages = [ cfg.package ];
|
|
systemd.services."jitterentropy".wantedBy = [ "basic.target" ];
|
|
};
|
|
|
|
meta.maintainers = with lib.maintainers; [ thillux ];
|
|
}
|