# Should security.tpm2 be enabled by default?

**URL:** https://discourse.nixos.org/t/should-security-tpm2-be-enabled-by-default/9916
**Category:** Security
**Created:** [November 9, 2020, 6:44pm UTC](https://discourse.nixos.org/t/should-security-tpm2-be-enabled-by-default/9916 "2020-11-09T18:44:02Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![bbigras](https://discourse.nixos.org/user_avatar/discourse.nixos.org/bbigras/32/56_2.png) [@bbigras](https://discourse.nixos.org/u/bbigras)
#### Post date: [November 9, 2020, 6:44pm UTC](https://discourse.nixos.org/t/should-security-tpm2-be-enabled-by-default/9916/1 "2020-11-09T18:44:02Z")

</div>

I saw that 20.09 now has [security.tpm2](https://nixos.org/manual/nixos/stable/options.html#opt-security.tpm2.enable).

Should it be enabled by default on system with tpm 2 support?

Are those chips trustworthy like the ( **Trusted** Platform Module) name says?

I think I saw somewhere that we can use tpm for rng and storing keys.

---

<div class="post-metadata">

### Author: ![hmenke](https://discourse.nixos.org/user_avatar/discourse.nixos.org/hmenke/32/2369_2.png) [@hmenke](https://discourse.nixos.org/u/hmenke)
#### Post date: [November 9, 2020, 8:20pm UTC](https://discourse.nixos.org/t/should-security-tpm2-be-enabled-by-default/9916/2 "2020-11-09T20:20:38Z")

</div>

> [@bbigras](#):
>
> Should it be enabled by default on system with tpm 2 support?

That would require support for detection in `nixos-generate-config` and given that it not even detects your graphics driver, I find that quite unlikely.

> [@bbigras](#):
>
> Are those chips trustworthy like the ( **Trusted** Platform Module) name says?

They are as trustworthy as the companies that make them and the governments of the countries of manufacture. For comparison I would say they are as trustworthy as the Intel Management Engine.

---

<div class="post-metadata">

### Author: ![bbigras](https://discourse.nixos.org/user_avatar/discourse.nixos.org/bbigras/32/56_2.png) [@bbigras](https://discourse.nixos.org/u/bbigras)
#### Post date: [November 9, 2020, 9:00pm UTC](https://discourse.nixos.org/t/should-security-tpm2-be-enabled-by-default/9916/3 "2020-11-09T21:00:17Z")

</div>

> [@hmenke](#):
>
> That would require support for detection in `nixos-generate-config` and given that it not even detects your graphics driver, I find that quite unlikely.

Maybe that could be handled by [nixos-hardware](https://github.com/NixOS/nixos-hardware) instead.

> [@hmenke](#):
>
> They are as trustworthy as the companies that make them and the governments of the countries of manufacture. For comparison I would say they are as trustworthy as the Intel Management Engine.

Is `/dev/random` (or urandom I don’t remember which one to use) trust-worthy with an Intel CPU if we don’t trust Intel?

---

<div class="post-metadata">

### Author: ![monokrome](https://discourse.nixos.org/user_avatar/discourse.nixos.org/monokrome/32/6950_2.png) [@monokrome](https://discourse.nixos.org/u/monokrome)
#### Post date: [July 27, 2022, 10:12pm UTC](https://discourse.nixos.org/t/should-security-tpm2-be-enabled-by-default/9916/4 "2022-07-27T22:12:24Z")

</div>

> [@bbigras](#):
>
> Are those chips trustworthy like the ( **Trusted** Platform Module) name says?

They’re as trustworthy as they can get, but it’s important that you purchase them directly from the manufacturer without any 3rd parties.

As an example, if you buy a motherboard and a TPM module directly from MSI then your risk is not greater than the risk of buying the motherboard itself. If you buy the motherboard from a non-manufacturer source then you can still buy the TPM from the manufacturer, so your level of trust relies on how much you trust MSI (your motherboard manufacturer) in the end. If you didn’t trust them, you wouldn’t be using that motherboard.

Part of why the TPM isn’t integrated into the motherboard is to assure that you get it from the manufacturer - even if you buy your motherboard from another source.
