about summary refs log tree commit diff
path: root/nixpkgs/nixos/modules/services/security/jitterentropy-rngd.nix
blob: 104aeccebc9ccce2d898637f9b5698e4168ade43 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ 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 ];
}