sway: Use proper systemd integration

restic-rest-server
Simon Bruder 2020-12-07 19:52:06 +01:00
parent 289f760252
commit 29ddc36591
No known key found for this signature in database
GPG Key ID: 6F03E0000CC5B62F
1 changed files with 1 additions and 1 deletions

View File

@ -38,6 +38,7 @@ in
lib.mkIf config.sbruder.gui.enable {
wayland.windowManager.sway = {
enable = true;
systemdIntegration = true;
config = {
modifier = "Mod4";
@ -245,7 +246,6 @@ lib.mkIf config.sbruder.gui.enable {
# Start on tty1
programs.zsh.profileExtra = ''
if [[ -z $WAYLAND_DISPLAY ]] && [[ $(tty) = /dev/tty1 ]] && command -v sway >/dev/null ; then
systemctl --user start graphical-session.target
export XDG_SESSION_TYPE="wayland"
exec sway
fi