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