From ce8d4815f7f99b2da1dec6a1c40a8acbd11f609e Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Wed, 6 Nov 2024 23:37:11 -0800 Subject: [PATCH] feat(callisto): add plymouth boot sequence --- hosts/callisto/configuration.nix | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) diff --git a/hosts/callisto/configuration.nix b/hosts/callisto/configuration.nix index 9428c2b..2161e9f 100755 --- a/hosts/callisto/configuration.nix +++ b/hosts/callisto/configuration.nix @@ -4,6 +4,7 @@ { inputs, pkgs, + config, ... }: { @@ -24,8 +25,29 @@ } ); - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = false; + boot = { + loader.systemd-boot.enable = true; + loader.efi.canTouchEfiVariables = false; + plymouth = { + enable = true; + font = "${config.stylix.fonts.monospace.package}/share/fonts/truetype/NerdFonts/CaskaydiaCoveNerdFontMono-Regular.ttf"; + }; + consoleLogLevel = 3; + initrd.verbose = false; + kernelParams = [ + "quiet" + "splash" + "boot.shell_on_fail" + "rd.systemd.show_status=false" + "rd.udev.log_level=3" + "udev.log_priority=3" + "apple_dcp.show_notch=1" + ]; + extraModprobeConfig = '' + options hid_apple iso_layout=0 + ''; + initrd.systemd.enable = true; + }; hardware.asahi = { peripheralFirmwareDirectory = "${inputs.apple-firmware}/firmware"; @@ -33,12 +55,6 @@ experimentalGPUInstallMode = "overlay"; }; - boot.extraModprobeConfig = '' - options hid_apple iso_layout=0 - ''; - - boot.kernelParams = [ "apple_dcp.show_notch=1" ]; - networking.hostName = "callisto"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.