Merge pull request #260275 from thillux/jitterentropy-rngd
jitterentropy-rngd: init at 1.2.8
This commit is contained in:
commit
95e6dfd5d9
@ -1154,6 +1154,7 @@
|
||||
./services/security/hologram-agent.nix
|
||||
./services/security/hologram-server.nix
|
||||
./services/security/infnoise.nix
|
||||
./services/security/jitterentropy-rngd.nix
|
||||
./services/security/kanidm.nix
|
||||
./services/security/munge.nix
|
||||
./services/security/nginx-sso.nix
|
||||
|
18
nixos/modules/services/security/jitterentropy-rngd.nix
Normal file
18
nixos/modules/services/security/jitterentropy-rngd.nix
Normal file
@ -0,0 +1,18 @@
|
||||
{ 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 ];
|
||||
}
|
34
pkgs/by-name/ji/jitterentropy-rngd/package.nix
Normal file
34
pkgs/by-name/ji/jitterentropy-rngd/package.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ lib, stdenv, fetchFromGitHub }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "jitterentropy-rngd";
|
||||
version = "1.2.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "smuellerDD";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-LDym636ss3B1G/vrqatu9g5vbVEeDX0JQcxZ/IxGeY0=";
|
||||
};
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out
|
||||
make install DESTDIR= PREFIX=$out UNITDIR=$out/lib/systemd/system
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = ''A random number generator, which injects entropy to the kernel'';
|
||||
homepage = "https://github.com/smuellerDD/jitterentropy-rngd";
|
||||
changelog = "https://github.com/smuellerDD/jitterentropy-rngd/releases/tag/v${version}";
|
||||
license = [ licenses.gpl2Only licenses.bsd3 ];
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ thillux ];
|
||||
mainProgram = "jitterentropy-rngd";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user