From 7aecb4656ba12e505e3f525243bb297cb7e16ee7 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Mon, 31 May 2021 12:05:04 +0100 Subject: [PATCH] use systemdMinimal for udev in initrd saves 649216 bytes on Potter --- modules/initrd.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/initrd.nix b/modules/initrd.nix index 37815ede..dc58958d 100644 --- a/modules/initrd.nix +++ b/modules/initrd.nix @@ -1,12 +1,12 @@ { config, pkgs, lib, utils, ... }: let + udev = pkgs.systemdMinimal; inherit (pkgs) busybox makeInitrd mkExtraUtils runCommandNoCC - udev writeText ; inherit (lib) @@ -168,7 +168,7 @@ let package = runCommandNoCC "empty" {} "mkdir -p $out"; extraCommand = let - inherit (pkgs) udev; + inherit udev; in '' # Copy udev.