From 897f9671d7e1a5ed98ada2a81004c4200f7b4112 Mon Sep 17 00:00:00 2001 From: Jimbo Date: Mon, 20 Jan 2025 14:54:06 -0500 Subject: [PATCH] Enable Plymouth on desktops --- modules/system/devices/audio/default.nix | 2 +- modules/system/devices/boot/default.nix | 1 + .../system/devices/boot/plymouth/default.nix | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 modules/system/devices/boot/plymouth/default.nix diff --git a/modules/system/devices/audio/default.nix b/modules/system/devices/audio/default.nix index daafb03..c720d4b 100644 --- a/modules/system/devices/audio/default.nix +++ b/modules/system/devices/audio/default.nix @@ -1,4 +1,4 @@ -{ lib, config, pkgs, ... }: +{ config, lib, pkgs, ... }: { config = lib.mkIf config.system.desktop.enable { services.pipewire = { diff --git a/modules/system/devices/boot/default.nix b/modules/system/devices/boot/default.nix index 46a4d3b..25be28b 100644 --- a/modules/system/devices/boot/default.nix +++ b/modules/system/devices/boot/default.nix @@ -2,6 +2,7 @@ { imports = [ ./lanzaboote + ./plymouth ./services ./systemd ]; diff --git a/modules/system/devices/boot/plymouth/default.nix b/modules/system/devices/boot/plymouth/default.nix new file mode 100644 index 0000000..270b74c --- /dev/null +++ b/modules/system/devices/boot/plymouth/default.nix @@ -0,0 +1,17 @@ +{ config, lib, pkgs, ... }: +{ + boot = lib.mkIf config.system.desktop.enable { + plymouth.enable = true; + consoleLogLevel = 0; + initrd.verbose = false; + kernelParams = [ + "quiet" + "splash" + "boot.shell_on_fail" + "loglevel=3" + "rd.systemd.show_status=false" + "rd.udev.log_level=3" + "udev.log_priority=3" + ]; + }; +}