Fix some issues in greetd config

This commit is contained in:
ItsDrike 2024-06-27 14:35:16 +02:00
parent 8a4d6ba1cb
commit 03d4c5e69a
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -15,10 +15,6 @@
tuiGreetTheme = "'border=magenta;text=cyan;prompt=green;time=red;action=white;button=yellow;container=black;input=gray'"; tuiGreetTheme = "'border=magenta;text=cyan;prompt=green;time=red;action=white;button=yellow;container=black;input=gray'";
sessionData = config.services.displayManager.sessionData.desktops; sessionData = config.services.displayManager.sessionData.desktops;
sessionPaths = concatStringsSep ":" [
"${sessionData}/share/xsessions"
"${sessionData}/share/wayland-sessions"
];
defaultSession = { defaultSession = {
user = "greeter"; user = "greeter";
@ -29,8 +25,9 @@
"--remember-user-session" "--remember-user-session"
"--asterisks" "--asterisks"
"--greeting ${greetingMsg}" "--greeting ${greetingMsg}"
"--sessions '${sessionPaths}'"
"--theme ${tuiGreetTheme}" "--theme ${tuiGreetTheme}"
"--sessions '${sessionData}/share/wayland-sessions'"
"--xsessions '${sessionData}/share/xsessions'"
]; ];
}; };
in { in {
@ -52,7 +49,7 @@ in {
# See: https://github.com/apognu/tuigreet/issues/68#issuecomment-1586359960 # See: https://github.com/apognu/tuigreet/issues/68#issuecomment-1586359960
systemd.services.greetd.serviceConfig = { systemd.services.greetd.serviceConfig = {
Type = "idle"; Type = "idle";
StandardInputs = "tty"; StandardInput = "tty";
StandardOutput = "tty"; StandardOutput = "tty";
StandardError = "journal"; StandardError = "journal";
TTYReset = true; TTYReset = true;