1{ lib, config, pkgs, ... }:
2let
3 cfg = config.services.jitterentropy-rngd;
4in
5{
6 options.services.jitterentropy-rngd = {
7 enable =
8 lib.mkEnableOption "jitterentropy-rngd service configuration";
9 package = lib.mkPackageOption pkgs "jitterentropy-rngd" { };
10 };
11
12 config = lib.mkIf cfg.enable {
13 systemd.packages = [ cfg.package ];
14 systemd.services."jitterentropy".wantedBy = [ "basic.target" ];
15 };
16
17 meta.maintainers = with lib.maintainers; [ thillux ];
18}