login and sudo

This commit is contained in:
Adithya 2023-03-24 13:05:51 +05:30
parent 7dcf79fb4a
commit 5052ee6d72
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 4 additions and 4 deletions

View file

@ -65,9 +65,10 @@
};
audit.enable = true;
auditd.enable = true;
pam.services = {
login.u2fAuth = true;
sudo.u2fAuth = true;
pam.u2f = {
enable = true;
authFile = "/etc/u2f_keys";
cue = true;
};
polkit.enable = true;
rtkit.enable = true;

View file

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