add tpm2 support

This commit is contained in:
k3t
2026-07-09 06:21:31 -06:00
parent f2c516f628
commit 40ff0eb691
5 changed files with 16 additions and 7 deletions
-1
View File
@@ -17,7 +17,6 @@
joplin-desktop joplin-desktop
qbittorrent qbittorrent
kdePackages.kate kdePackages.kate
jellyfin-desktop
flatpak flatpak
grayjay grayjay
vscode.fhs vscode.fhs
+4
View File
@@ -1,4 +1,8 @@
{ {
programs.ssh = {
startAgent = true;
agentPKCS11Whitelist = "${config.security.tpm2.pkcs11.package}/lib/*,/run/current-system/sw/lib/*";
};
services.openssh = { services.openssh = {
enable = true; enable = true;
settings.PasswordAuthentication = true; settings.PasswordAuthentication = true;
+5
View File
@@ -3,6 +3,11 @@
sudo.execWheelOnly = true; sudo.execWheelOnly = true;
polkit.enable = true; polkit.enable = true;
protectKernelImage = true; protectKernelImage = true;
tpm = {
enable = true;
pkcs11.enable = true;
tctiEnvironment.enable = true;
};
}; };
system.autoUpgrade = { system.autoUpgrade = {
enable = true; enable = true;
+1 -1
View File
@@ -2,7 +2,7 @@
users.users.juliet = { users.users.juliet = {
description = "Juliet"; description = "Juliet";
isNormalUser = true; isNormalUser = true;
extraGroups = [ "audio" "video" "bluetooth" "wheel" "input" "networkmanager" "scanner" "lp" ]; extraGroups = [ "audio" "video" "bluetooth" "wheel" "input" "networkmanager" "scanner" "lp" "tss" ];
initialPassword = "password"; initialPassword = "password";
linger = true; linger = true;
}; };
+3 -2
View File
@@ -2,11 +2,12 @@
users.users.k3t = { users.users.k3t = {
description = "Kai Moore"; description = "Kai Moore";
isNormalUser = true; isNormalUser = true;
extraGroups = [ "audio" "video" "bluetooth" "wheel" "input" "networkmanager" "scanner" "lp" ]; extraGroups = [ "audio" "video" "bluetooth" "wheel" "input" "networkmanager" "scanner" "lp" "tss" ];
initialPassword = "password"; initialPassword = "password";
linger = true; linger = true;
openssh.authorizedKeys.keys = [ openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG6evv6KcTvFDp4EeO9mMAa2Pb7yYZ/uTNM6TrVt5nKc k3t@DESKTOP-GTFSBKP" # TBB Win10 "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIG6evv6KcTvFDp4EeO9mMAa2Pb7yYZ/uTNM6TrVt5nKc k3t@TheBlackBox" # TBB
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO1DAk3isgJPJbo19Kto6EnZdDMIe6F6D/BLyhhQPmBd k3t@T14" # T14
]; ];
}; };
} }