mirror of
https://github.com/blahai/nyx.git
synced 2025-01-19 11:30:20 +00:00
25 lines
564 B
Nix
25 lines
564 B
Nix
|
{
|
||
|
lib,
|
||
|
pkgs,
|
||
|
config,
|
||
|
...
|
||
|
}: let
|
||
|
inherit (lib.meta) getExe';
|
||
|
inherit (lib.modules) mkIf;
|
||
|
inherit (lib.options) mkEnableOption;
|
||
|
|
||
|
cfg = config.olympus.system.boot.plymouth;
|
||
|
in {
|
||
|
options.olympus.system.boot.plymouth.enable = mkEnableOption "plymouth boot splash";
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
boot.plymouth.enable = true;
|
||
|
|
||
|
# make plymouth work with sleep
|
||
|
powerManagement = {
|
||
|
powerDownCommands = "${getExe' pkgs.plymouth "plymouth"} --show-splash";
|
||
|
resumeCommands = "${getExe' pkgs.plymouth "plymouth"} --quit";
|
||
|
};
|
||
|
};
|
||
|
}
|