mirror of
https://github.com/ItsDrike/nixdots
synced 2025-06-29 07:20:43 +00:00
Add polymouth
This commit is contained in:
parent
5514ffb24d
commit
97680bd24e
5 changed files with 62 additions and 0 deletions
|
@ -4,5 +4,6 @@ _: {
|
|||
./generic.nix
|
||||
./secure-boot.nix
|
||||
./initrd.nix
|
||||
./plymouth.nix
|
||||
];
|
||||
}
|
||||
|
|
28
system/boot/plymouth.nix
Normal file
28
system/boot/plymouth.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ 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 ];
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
# Make polymouth work with sleep
|
||||
powerManagement = {
|
||||
powerDownCommands = ''
|
||||
${pkgs.plymouth} --show-splash
|
||||
'';
|
||||
resumeCommands = ''
|
||||
${pkgs.plymouth} --quit
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue