phone autologin, fix bento sha

This commit is contained in:
2023-09-23 18:31:45 +02:00
parent 33af4a02e4
commit 50c0d396d6
2 changed files with 7 additions and 1 deletions

View File

@@ -59,6 +59,12 @@
];
};
services.getty.autologinUser = "dominik";
environment.loginShellInit = ''
[[ "$(tty)" == /dev/tty? ]] && sudo /run/current-system/sw/bin/lock this
[[ "$(tty)" == /dev/tty1 ]] && sway
'';
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave