login and sudo
This commit is contained in:
parent
7dcf79fb4a
commit
5052ee6d72
2 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue