From 1e6cea18f6c97bf79d12f968766906bdd86369ab Mon Sep 17 00:00:00 2001 From: DerGrumpf Date: Tue, 1 Apr 2025 01:42:29 +0200 Subject: [PATCH] Added: Plymouth --- hosts/m920q/default.nix | 1 + modules/plymouth.nix | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 modules/plymouth.nix diff --git a/hosts/m920q/default.nix b/hosts/m920q/default.nix index 6f77b54..d8ede85 100644 --- a/hosts/m920q/default.nix +++ b/hosts/m920q/default.nix @@ -9,6 +9,7 @@ [ ../../modules/system.nix ../../modules/regreet/regreet.nix + ../../modules/plymouth.nix # Include the results of the hardware scan. ./hardware-configuration.nix diff --git a/modules/plymouth.nix b/modules/plymouth.nix new file mode 100644 index 0000000..168e687 --- /dev/null +++ b/modules/plymouth.nix @@ -0,0 +1,31 @@ +{ pkgs, ... }: { + boot = { + + plymouth = { + enable = true; + theme = "rings"; + themePackages = with pkgs; [ + # By default we would install all themes + (adi1090x-plymouth-themes.override { + selected_themes = [ "rings" ]; + }) + ]; + }; + + # Enable "Silent boot" + consoleLogLevel = 3; + initrd.verbose = false; + kernelParams = [ + "quiet" + "splash" + "boot.shell_on_fail" + "udev.log_priority=3" + "rd.systemd.show_status=auto" + ]; + # Hide the OS choice for bootloaders. + # It's still possible to open the bootloader list by pressing any key + # It will just not appear on screen unless a key is pressed + loader.timeout = 0; + + }; +}