mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-14 04:07:18 +00:00
39 lines
738 B
Nix
39 lines
738 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib) mkIf;
|
|
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];
|
|
})
|
|
];
|
|
};
|
|
|
|
kernelParams = ["splash"];
|
|
};
|
|
|
|
# Make polymouth work with sleep
|
|
powerManagement = {
|
|
powerDownCommands = ''
|
|
${pkgs.plymouth} --show-splash
|
|
'';
|
|
resumeCommands = ''
|
|
${pkgs.plymouth} --quit
|
|
'';
|
|
};
|
|
};
|
|
}
|