2022-12-13 13:03:20 +00:00
|
|
|
desktop: _: {
|
2022-01-15 15:09:02 +00:00
|
|
|
programs = {
|
|
|
|
zsh = {
|
|
|
|
enable = true;
|
|
|
|
enableAutosuggestions = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
enableSyntaxHighlighting = true;
|
2022-12-13 13:03:20 +00:00
|
|
|
enableVteIntegration = desktop;
|
2022-01-15 15:09:02 +00:00
|
|
|
autocd = true;
|
2023-04-05 07:56:35 +00:00
|
|
|
loginExtra =
|
|
|
|
if desktop
|
|
|
|
then ''
|
|
|
|
if [[ -z "$DISPLAY" ]] && [[ $(tty) = "/dev/tty1" ]]; then
|
|
|
|
exec sway
|
|
|
|
fi
|
|
|
|
''
|
|
|
|
else "";
|
2022-01-15 15:09:02 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|