diff --git a/nixos/sway/default.nix b/nixos/sway/default.nix index 9a625c90..3b658871 100644 --- a/nixos/sway/default.nix +++ b/nixos/sway/default.nix @@ -6,6 +6,12 @@ in { programs.qt5ct.enable = true; systemd.defaultUnit = "graphical.target"; + environment.loginShellInit = '' + if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then + exec sway + fi + ''; + home-manager.users.cyryl = { ... }: { programs.mako.enable = true;