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