diff options
-rw-r--r-- | nixos/parts/graphical.nix | 4 |
1 files changed, 4 insertions, 0 deletions
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"; |