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,16 +3,20 @@
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 = {
enable = true; plymouth = {
theme = cfg.selectedTheme; enable = true;
} theme = cfg.selectedTheme;
// lib.optionalAttrs cfg.withThemes { }
themePackages = [ // lib.optionalAttrs cfg.withThemes {
(pkgs.adi1090x-plymouth-themes.override { themePackages = [
selected_themes = [ cfg.selectedTheme ]; (pkgs.adi1090x-plymouth-themes.override {
}) selected_themes = [ cfg.selectedTheme ];
]; })
];
};
kernelParams = ["splash"];
}; };
# Make polymouth work with sleep # Make polymouth work with sleep