use greetd for ezpc login

This commit is contained in:
notgne2 2022-12-25 14:21:08 -07:00
parent f1d3b38fe5
commit cc56729c13
Signed by: notgne2
SSH Key Fingerprint: SHA256:qlFCAimT/PvNIG3u+aYT9pIqFCWgu6sNsWjpV1vHLIE
2 changed files with 10 additions and 6 deletions

View File

@ -12,7 +12,7 @@ in {
defaultFromBash = mkOption {
type = types.bool;
default = cfg.enable;
default = false;
description = ''
Launch automatically when an interactive Bash shell is started
'';

View File

@ -39,11 +39,15 @@ in {
NIXOS_OZONE_WL = "1";
};
environment.loginShellInit = lib.mkAfter ''
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
exec sway
fi
'';
services.greetd = {
enable = true;
vt = 1;
settings = {
default_session = {
command = "${pkgs.greetd.tuigreet}/bin/tuigreet --cmd sway";
};
};
};
i18n.inputMethod = {
enabled = "ibus";