Add splash kernel param if plymouth is enabled

This commit is contained in:
ItsDrike 2024-04-13 18:14:32 +02:00
parent 8a734ee951
commit 31221a5d19
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -3,7 +3,8 @@
cfg = config.myOptions.system.boot.plymouth; cfg = config.myOptions.system.boot.plymouth;
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
boot.plymouth = { boot = {
plymouth = {
enable = true; enable = true;
theme = cfg.selectedTheme; theme = cfg.selectedTheme;
} }
@ -15,6 +16,9 @@ in {
]; ];
}; };
kernelParams = ["splash"];
};
# Make polymouth work with sleep # Make polymouth work with sleep
powerManagement = { powerManagement = {
powerDownCommands = '' powerDownCommands = ''