Update modules/users.nix

This commit is contained in:
Alexander Bantyev 2020-03-02 13:08:05 +03:00
parent 7574de57cf
commit ab170d2af8
1 changed files with 4 additions and 1 deletions

View File

@ -42,7 +42,10 @@
services.mingetty.autologinUser = "balsoft"; services.mingetty.autologinUser = "balsoft";
environment.loginShellInit = "sudo /run/current-system/sw/bin/lock this; [[ $(tty) == /dev/tty1 ]] && sway"; environment.loginShellInit = ''
[[ "$(tty)" == /dev/tty? ]] && sudo /run/current-system/sw/bin/lock this
[[ "$(tty)" == /dev/tty1 ]] && sway
'';
security.pam.u2f = { security.pam.u2f = {
control = "sufficient"; control = "sufficient";