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 { defaultFromBash = mkOption {
type = types.bool; type = types.bool;
default = cfg.enable; default = false;
description = '' description = ''
Launch automatically when an interactive Bash shell is started Launch automatically when an interactive Bash shell is started
''; '';

View File

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