From 31221a5d1916f33d8be36039a3edbb693b5c8b84 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Sat, 13 Apr 2024 18:14:32 +0200 Subject: [PATCH] Add splash kernel param if plymouth is enabled --- system/boot/plymouth.nix | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/system/boot/plymouth.nix b/system/boot/plymouth.nix index 6cf629f..ad6041c 100644 --- a/system/boot/plymouth.nix +++ b/system/boot/plymouth.nix @@ -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