Move sway startup where it belongs

This commit is contained in:
Alexander Bantyev 2021-06-14 11:09:26 +03:00
parent 9d30eb924e
commit 758446365d
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5
2 changed files with 3 additions and 2 deletions

View File

@ -58,9 +58,8 @@
services.getty.autologinUser = "balsoft";
environment.loginShellInit = ''
environment.loginShellInit = lib.mkBefore ''
[[ "$(tty)" == /dev/tty? ]] && sudo /run/current-system/sw/bin/lock this
[[ "$(tty)" == /dev/tty1 ]] && sway
'';
security.pam.u2f = {

View File

@ -22,6 +22,8 @@ in {
users.users.balsoft.extraGroups = [ "sway" ];
environment.loginShellInit = lib.mkAfter ''[[ "$(tty)" == /dev/tty1 ]] && sway'';
home-manager.users.balsoft.wayland.windowManager.sway = {
enable = true;
config = rec {