From 140489168ec6a6eaa6e2f10f4e061b3cff20bed1 Mon Sep 17 00:00:00 2001 From: Josh Hoffer Date: Wed, 10 Jun 2026 15:40:57 -0700 Subject: [PATCH] nixos/uki: use config systemd package Use the config's systemd package. This makes patching systemd-stub easier. All other ukify settings are set from config so this is more consistent. --- nixos/modules/system/boot/uki.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/uki.nix b/nixos/modules/system/boot/uki.nix index fa12c63b751a..a33822a9ba37 100644 --- a/nixos/modules/system/boot/uki.nix +++ b/nixos/modules/system/boot/uki.nix @@ -81,7 +81,7 @@ in Linux = lib.mkOptionDefault "${config.boot.kernelPackages.kernel}/${config.system.boot.loader.kernelFile}"; Initrd = lib.mkOptionDefault "${config.system.build.initialRamdisk}/${config.system.boot.loader.initrdFile}"; Cmdline = lib.mkOptionDefault "init=${config.system.build.toplevel}/init ${toString config.boot.kernelParams}"; - Stub = lib.mkOptionDefault "${pkgs.systemd}/lib/systemd/boot/efi/linux${efiArch}.efi.stub"; + Stub = lib.mkOptionDefault "${config.systemd.package}/lib/systemd/boot/efi/linux${efiArch}.efi.stub"; Uname = lib.mkOptionDefault "${config.boot.kernelPackages.kernel.modDirVersion}"; OSRelease = lib.mkOptionDefault "@${config.system.build.etc}/etc/os-release"; # This is needed for cross compiling.