From 758446365d01da97170af14dc156f30ae3f3f413 Mon Sep 17 00:00:00 2001 From: Alexander Bantyev Date: Mon, 14 Jun 2021 11:09:26 +0300 Subject: [PATCH] Move sway startup where it belongs --- modules/security.nix | 3 +-- modules/workspace/sway/default.nix | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/security.nix b/modules/security.nix index 80092c0..f3a1136 100644 --- a/modules/security.nix +++ b/modules/security.nix @@ -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 = { diff --git a/modules/workspace/sway/default.nix b/modules/workspace/sway/default.nix index fcf6026..e4be79c 100755 --- a/modules/workspace/sway/default.nix +++ b/modules/workspace/sway/default.nix @@ -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 {