encrypt ssh private keys with the tpm
This commit is contained in:
parent
0291524082
commit
d5db083507
3 changed files with 16 additions and 0 deletions
|
@ -69,6 +69,7 @@
|
|||
./nixos/sudo.nix
|
||||
./nixos/symlinks.nix
|
||||
./nixos/tailscale.nix
|
||||
./nixos/tpm.nix
|
||||
|
||||
{
|
||||
# enable bluetooth
|
||||
|
@ -97,6 +98,7 @@
|
|||
users.${user} = {
|
||||
imports = [
|
||||
./home-manager/plasma.nix
|
||||
./home-manager/tpm.nix
|
||||
./home-manager/user.nix
|
||||
./home-manager/vscode.nix
|
||||
{
|
||||
|
|
5
home-manager/tpm.nix
Normal file
5
home-manager/tpm.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
programs.ssh.extraConfig = ''
|
||||
PKCS11Provider = /run/current-system/sw/lib/libtpm2_pkcs11.so
|
||||
'';
|
||||
}
|
9
nixos/tpm.nix
Normal file
9
nixos/tpm.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{ user, ... }:
|
||||
{
|
||||
security.tpm2 = {
|
||||
enable = true;
|
||||
pkcs11.enable = true;
|
||||
tctiEnvironment.enable = true;
|
||||
};
|
||||
users.users.${user}.extraGroups = [ "tss" ];
|
||||
}
|
Loading…
Reference in a new issue