depot/third_party/nixpkgs/nixos/modules/services/security/jitterentropy-rngd.nix

19 lines
495 B
Nix
Raw Normal View History

{ lib, config, pkgs, ... }:
let
cfg = config.services.jitterentropy-rngd;
in
{
options.services.jitterentropy-rngd = {
enable =
lib.mkEnableOption (lib.mdDoc "jitterentropy-rngd service configuration");
package = lib.mkPackageOptionMD pkgs "jitterentropy-rngd" { };
};
config = lib.mkIf cfg.enable {
systemd.packages = [ cfg.package ];
systemd.services."jitterentropy".wantedBy = [ "basic.target" ];
};
meta.maintainers = with lib.maintainers; [ thillux ];
}