From 838913aba36163af80cf95e2ba63e5604fc61b2f Mon Sep 17 00:00:00 2001 From: Ranomier <> Date: Wed, 11 Dec 2024 15:48:34 +0100 Subject: [PATCH] 282 current 2024-12-11 15:48:28 24.11.20241207.e2605d0 6.12.3 * --- modules/customisation.nix | 8 ++++++++ modules/plymouth.nix | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 modules/customisation.nix create mode 100644 modules/plymouth.nix diff --git a/modules/customisation.nix b/modules/customisation.nix new file mode 100644 index 0000000..1179963 --- /dev/null +++ b/modules/customisation.nix @@ -0,0 +1,8 @@ +{pkgs, ...}: { + #MANPAGER='nvim +Man!' + environment.systemPackages = [pkgs.neovim]; + environment.variables = { + "MANPAGER" = "nvim +Man!"; + "EDITOR" = "nvim"; + }; +} diff --git a/modules/plymouth.nix b/modules/plymouth.nix new file mode 100644 index 0000000..3070300 --- /dev/null +++ b/modules/plymouth.nix @@ -0,0 +1,36 @@ +{pkgs, ...}: { + boot = let + theme_name = "deus_ex"; + in { + # could lead to problems: https://github.com/NixOS/nixpkgs/issues/26722 + initrd.systemd.enable = true; + + plymouth = { + enable = true; + theme = theme_name; + themePackages = with pkgs; [ + # By default we would install all themes + (adi1090x-plymouth-themes.override { + selected_themes = [theme_name]; + }) + ]; + }; + + # Enable "Silent Boot" + 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" + ]; + # 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; + }; +}