u2f login and sudo
This commit is contained in:
parent
a31d1897fe
commit
9b56f1514a
2 changed files with 4 additions and 1 deletions
|
@ -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 = {
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue