From 6db24976f86c0bb4066d79e981e9bc3a2f335696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 24 Apr 2022 10:03:47 +0100 Subject: [PATCH] add autostart to sway --- nixos/sway/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) 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;