From 22453763c99e0ece9cb6224e90caa475fda71465 Mon Sep 17 00:00:00 2001 From: Minijackson Date: Sat, 13 Jan 2024 21:50:02 +0100 Subject: graphical/plymouth: init --- usecases/desktop/graphical.nix | 1 + usecases/desktop/graphical/plymouth.nix | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 usecases/desktop/graphical/plymouth.nix diff --git a/usecases/desktop/graphical.nix b/usecases/desktop/graphical.nix index 3e9da0d..3a4a9c9 100644 --- a/usecases/desktop/graphical.nix +++ b/usecases/desktop/graphical.nix @@ -7,6 +7,7 @@ inputs: { (import ./graphical/firefox.nix inputs) (import ./graphical/gtk.nix inputs) (import ./graphical/mpv.nix inputs) + (import ./graphical/plymouth.nix inputs) (import ./graphical/rofi.nix inputs) (import ./graphical/sway.nix inputs) (import ./graphical/waybar.nix inputs) diff --git a/usecases/desktop/graphical/plymouth.nix b/usecases/desktop/graphical/plymouth.nix new file mode 100644 index 0000000..32d85b8 --- /dev/null +++ b/usecases/desktop/graphical/plymouth.nix @@ -0,0 +1,26 @@ +inputs: { + config, + lib, + pkgs, + ... +}: { + options.reborn.plymouth.enable = + (lib.mkEnableOption "the Plymouth boot") + // {default = true;}; + + config = lib.mkIf config.reborn.plymouth.enable { + boot = { + initrd.systemd.enable = true; + + loader.timeout = 0; + + plymouth = { + enable = true; + themePackages = [pkgs.adi1090x-plymouth-themes]; + theme = "lone"; + }; + + kernelParams = ["quiet"]; + }; + }; +} -- cgit v1.2.3