use greetd for ezpc login
This commit is contained in:
parent
f1d3b38fe5
commit
cc56729c13
@ -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
|
||||
'';
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user