mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
19 lines
493 B
Nix
19 lines
493 B
Nix
{ 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.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 ];
|
|
}
|