about summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2024-02-27 22:28:27 +0100
committerGitHub <noreply@github.com>2024-02-27 22:28:27 +0100
commit9c1ea5e3a2a2578792438cba233f2763593e19c5 (patch)
treeb5814b876afb983448b9928a8d5660f748e6bba5 /nixos/modules/system
parent4e6ae964aecdd0b819fe6ff0bf4ebaf7c0455ad1 (diff)
parent46bf58589263259c1981e2de9baf69a3406c5fbc (diff)
Merge pull request #267012 from alois31/plymouth-unbloat
nixos/plymouth: drop the X11 renderer in the initrd
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/plymouth.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/plymouth.nix b/nixos/modules/system/boot/plymouth.nix
index b041b8951fa37..16bca40993aeb 100644
--- a/nixos/modules/system/boot/plymouth.nix
+++ b/nixos/modules/system/boot/plymouth.nix
@@ -186,6 +186,8 @@ in
           # module might come from a theme
           cp ${themesEnv}/lib/plymouth/*.so $out
           cp ${plymouth}/lib/plymouth/renderers/*.so $out/renderers
+          # useless in the initrd, and adds several megabytes to the closure
+          rm $out/renderers/x11.so
         '';
         "/etc/plymouth/themes".source = pkgs.runCommand "plymouth-initrd-themes" {} ''
           # Check if the actual requested theme is here
@@ -271,6 +273,8 @@ in
       # module might come from a theme
       cp ${themesEnv}/lib/plymouth/*.so $out/lib/plymouth
       cp ${plymouth}/lib/plymouth/renderers/*.so $out/lib/plymouth/renderers
+      # useless in the initrd, and adds several megabytes to the closure
+      rm $out/lib/plymouth/renderers/x11.so
 
       mkdir -p $out/share/plymouth/themes
       cp ${plymouth}/share/plymouth/plymouthd.defaults $out/share/plymouth