NixOS and Secrets

8 points by polywolf


jaredkrinke

I see a note that sops-nix and agenix don’t store the unencrypted secret on disk, but does that provide any practical benefit?

The encrypted secret and its key both are on disk, right? Or is one of them stored inside of a TPM or something?

I’m just starting to use Nix (for selfhosting services) and I’ve been using the “scp into the filesystem” route since it is simple and not much of a burden on my tiny deployments.

Edit: after a little research, it does sound like you can secure the SSH private key using a TPM. I wonder if that can be done from a VM… edit again: sounds like there can be “vTPM” support. I guess I answered my own question, then!