mirror of
https://github.com/ItsDrike/nixdots
synced 2024-12-26 04:54:35 +00:00
Add splash kernel param if plymouth is enabled
This commit is contained in:
parent
8a734ee951
commit
31221a5d19
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue