u2f login and sudo

This commit is contained in:
Adithya 2023-03-23 23:37:53 +05:30
parent a31d1897fe
commit 9b56f1514a
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 4 additions and 1 deletions

View file

@ -65,6 +65,10 @@
}; };
audit.enable = true; audit.enable = true;
auditd.enable = true; auditd.enable = true;
pam.services = {
login.u2fAuth = true;
sudo.u2fAuth = true;
};
polkit.enable = true; polkit.enable = true;
rtkit.enable = true; rtkit.enable = true;
tpm2 = { tpm2 = {

View file

@ -4,7 +4,6 @@ let
user = import ./user.nix; user = import ./user.nix;
in in
{ {
services.getty.autologinUser = user.primary.userName;
users.mutableUsers = false; users.mutableUsers = false;
users.users = { users.users = {
root.hashedPassword = user.root.hashedPassword; root.hashedPassword = user.root.hashedPassword;