blob: 48c1f81f2cceb15e1930963576aa2737441c7695 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
# SPDX-License-Identifier: MIT
# SPDX-FileCopyrightText: 2021-2022 Alyssa Ross <hi@alyssa.is>
{ config ? import ../../nix/eval-config.nix {} }:
let
inherit (config) pkgs;
extfs = pkgs.pkgsStatic.callPackage ./extfs.nix {
inherit config;
};
rootfs = import ../rootfs { inherit config; };
initramfs = import ./. { inherit config rootfs; };
in
with pkgs;
initramfs.overrideAttrs ({ nativeBuildInputs ? [], ... }: {
nativeBuildInputs = nativeBuildInputs ++ [
cryptsetup qemu_kvm tar2ext4 util-linux
];
EXT_FS = extfs;
KERNEL = "${rootfs.kernel}/${stdenv.hostPlatform.linux-kernel.target}";
ROOT_FS = rootfs;
})
|