nixos/modules/desktop/plymouth/default.nix

25 lines
380 B
Nix
Raw Normal View History

2023-08-08 00:07:27 +04:00
{
outputs,
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.modules.desktop.plymouth;
in {
options.modules.desktop.plymouth = {
enable = mkEnableOption false;
};
config = mkIf cfg.enable {
boot.plymouth = {
enable = true;
2023-08-08 10:52:32 +04:00
};
systemd.services.plymouth-quit = {
2023-08-08 14:33:40 +04:00
preStart = "${pkgs.coreutils}/bin/sleep 7";
2023-08-08 00:07:27 +04:00
};
};
}