From 25cc3e004058fa33da7f36c83de97c89d10d4e18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charlotte=20=F0=9F=A6=9D=20Delenk?= Date: Thu, 7 Nov 2024 09:04:40 +0100 Subject: [PATCH] add plymouth --- config/graphical.nix | 1 + config/graphical/plymouth.nix | 17 +++++++++++++++++ config/verbose.nix | 5 +++++ machine/pc-installer/default.nix | 6 ++++++ 4 files changed, 29 insertions(+) create mode 100644 config/graphical/plymouth.nix create mode 100644 config/verbose.nix diff --git a/config/graphical.nix b/config/graphical.nix index 8b5e7cf7..dd5b02db 100644 --- a/config/graphical.nix +++ b/config/graphical.nix @@ -3,5 +3,6 @@ isGraphical = true; imports = [ ./kde + ./graphical/plymouth.nix ]; } diff --git a/config/graphical/plymouth.nix b/config/graphical/plymouth.nix new file mode 100644 index 00000000..a3f6c539 --- /dev/null +++ b/config/graphical/plymouth.nix @@ -0,0 +1,17 @@ +{config, ...}: { + boot = { + 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" + ]; + loader.timeout = 0; + }; +} diff --git a/config/verbose.nix b/config/verbose.nix new file mode 100644 index 00000000..996fef4f --- /dev/null +++ b/config/verbose.nix @@ -0,0 +1,5 @@ +{...}: { + disabledModules = [ + ./graphical/plymouth.nix + ]; +} diff --git a/machine/pc-installer/default.nix b/machine/pc-installer/default.nix index cfb95341..c7a2f736 100644 --- a/machine/pc-installer/default.nix +++ b/machine/pc-installer/default.nix @@ -18,5 +18,11 @@ ./graphical.nix ]; }; + specialisation.graphical-verbose = { + configuration.imports = [ + ./graphical.nix + "${nixos-config}/config/verbose.nix" + ]; + }; isInstaller = true; }