nixos/greetd: add option to make greetd not stop Plymouth early

This commit is contained in:
K900 2024-05-11 11:52:45 +03:00
parent 4e9d164e01
commit 6dd3061cae

View File

@ -27,6 +27,17 @@ in
'';
};
greeterManagesPlymouth = mkOption {
type = types.bool;
internal = true;
default = false;
description = ''
Don't configure the greetd service to wait for Plymouth to exit.
Enable this if the greeter you're using can manage Plymouth itself to provide a smoother handoff.
'';
};
vt = mkOption {
type = types.int;
default = 1;
@ -72,8 +83,9 @@ in
];
After = [
"systemd-user-sessions.service"
"plymouth-quit-wait.service"
"getty@${tty}.service"
] ++ lib.optionals (!cfg.greeterManagesPlymouth) [
"plymouth-quit-wait.service"
];
Conflicts = [
"getty@${tty}.service"