Only disable TPM access by rngd when tcsd is enabled.
This commit is contained in:
parent
4cca346d21
commit
baf4faeddc
@ -30,7 +30,8 @@ with lib;
|
|||||||
|
|
||||||
description = "Hardware RNG Entropy Gatherer Daemon";
|
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 ];
|
restartTriggers = [ pkgs.rng_tools ];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user