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