summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2026-05-26 19:02:58 -0400
committerFreya Murphy <freya@freyacat.org>2026-05-26 19:02:58 -0400
commit83a7ad67f92f6c67495ccc3055f2094973ac9653 (patch)
treef07550cb4c71bec0b4005dbd5399cf65d6692721
parentrefactor bootloaders into modules (diff)
downloaddotfiles-nix-83a7ad67f92f6c67495ccc3055f2094973ac9653.tar.gz
dotfiles-nix-83a7ad67f92f6c67495ccc3055f2094973ac9653.tar.bz2
dotfiles-nix-83a7ad67f92f6c67495ccc3055f2094973ac9653.zip
add plymouth as a splash screen
-rw-r--r--hosts/shinji/default.nix1
-rw-r--r--options.nix1
-rw-r--r--system/bootloader/default.nix1
-rw-r--r--system/bootloader/plymouth.nix25
4 files changed, 28 insertions, 0 deletions
diff --git a/hosts/shinji/default.nix b/hosts/shinji/default.nix
index 7e23f4a..e22ee91 100644
--- a/hosts/shinji/default.nix
+++ b/hosts/shinji/default.nix
@@ -88,6 +88,7 @@
enable = true;
secureBoot.enable = true;
};
+ plymouth.enable = true;
};
# modules
diff --git a/options.nix b/options.nix
index abd82e1..e1208d7 100644
--- a/options.nix
+++ b/options.nix
@@ -536,6 +536,7 @@ in {
enable = mkEnableOption "Enable the limine boot loader";
secureBoot.enable = mkEnableOption "Enable secure boot for limine";
};
+ plymouth.enable = mkEnableOption "Enable the plymouth splash screen";
};
#
diff --git a/system/bootloader/default.nix b/system/bootloader/default.nix
index 8ff8125..a498906 100644
--- a/system/bootloader/default.nix
+++ b/system/bootloader/default.nix
@@ -2,5 +2,6 @@ _: {
imports = [
./grub.nix
./limine.nix
+ ./plymouth.nix
];
}
diff --git a/system/bootloader/plymouth.nix b/system/bootloader/plymouth.nix
new file mode 100644
index 0000000..9338a84
--- /dev/null
+++ b/system/bootloader/plymouth.nix
@@ -0,0 +1,25 @@
+{
+ lib,
+ config,
+ ...
+}: let
+ inherit (lib) mkIf;
+ cfg = config.bootloader.plymouth;
+in {
+ config = mkIf cfg.enable {
+ boot = {
+ kernelParams = [
+ "quiet"
+ "splash"
+ "rd.udev.log_level=3"
+ "systemd.show_status=auto"
+ "udev.log_priority=3"
+ "vt.global_cursor_default=0"
+ ];
+ plymouth = {
+ enable = true;
+ theme = "bgrt";
+ };
+ };
+ };
+}