From 71af66964c89c615fc86a5a7b53e3eb82b1dd6ad Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Sat, 21 Dec 2024 12:08:37 +0100 Subject: graphical: autostart sway --- nixos/parts/graphical.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/parts/graphical.nix b/nixos/parts/graphical.nix index 93a3cc7..c290cc5 100644 --- a/nixos/parts/graphical.nix +++ b/nixos/parts/graphical.nix @@ -8,6 +8,10 @@ }; programs.ssh.startAgent = true; + environment.loginShellInit = '' + [[ "$(tty)" == /dev/tty1 ]] && exec sway + ''; + environment.sessionVariables = { # Tell .zshrc to source zshrc-graphical.sh. MYNIX_GRAPHICAL = "true"; -- cgit v1.2.3