diff options
author | Alexander Kjeldaas <ak@formalprivacy.com> | 2014-04-22 13:41:22 +0200 |
---|---|---|
committer | Alexander Kjeldaas <ak@formalprivacy.com> | 2014-04-22 14:05:09 +0200 |
commit | baf4faeddc80cca49ba2ec9130744d6e300029df (patch) | |
tree | 6933e0fb773c63e8dfb405f82c80afca2df56ec0 /nixos/modules/security/rngd.nix | |
parent | 4cca346d21aa164729164f6568fa60225f0fb4ea (diff) | |
download | nixpkgs-baf4faeddc80cca49ba2ec9130744d6e300029df.tar nixpkgs-baf4faeddc80cca49ba2ec9130744d6e300029df.tar.gz nixpkgs-baf4faeddc80cca49ba2ec9130744d6e300029df.tar.bz2 nixpkgs-baf4faeddc80cca49ba2ec9130744d6e300029df.tar.lz nixpkgs-baf4faeddc80cca49ba2ec9130744d6e300029df.tar.xz nixpkgs-baf4faeddc80cca49ba2ec9130744d6e300029df.tar.zst nixpkgs-baf4faeddc80cca49ba2ec9130744d6e300029df.zip |
Only disable TPM access by rngd when tcsd is enabled.
Diffstat (limited to 'nixos/modules/security/rngd.nix')
-rw-r--r-- | nixos/modules/security/rngd.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/security/rngd.nix b/nixos/modules/security/rngd.nix index c47c1b2a67e..4d8fabc7696 100644 --- a/nixos/modules/security/rngd.nix +++ b/nixos/modules/security/rngd.nix @@ -30,7 +30,8 @@ with lib; description = "Hardware RNG Entropy Gatherer Daemon"; - serviceConfig.ExecStart = "${pkgs.rng_tools}/sbin/rngd -f -v --no-tpm=1"; + serviceConfig.ExecStart = "${pkgs.rng_tools}/sbin/rngd -f -v" + + (if config.services.tcsd.enable then " --no-tpm=1" else ""); restartTriggers = [ pkgs.rng_tools ]; }; |