nixos/initrd: Don't include some x86-specific modules unconditionally
This commit is contained in:
parent
44326993f4
commit
95880aaf06
@ -208,10 +208,11 @@ in
|
|||||||
"usbhid"
|
"usbhid"
|
||||||
"hid_generic" "hid_lenovo" "hid_apple" "hid_roccat" "hid_logitech_hidpp"
|
"hid_generic" "hid_lenovo" "hid_apple" "hid_roccat" "hid_logitech_hidpp"
|
||||||
|
|
||||||
# Misc. keyboard stuff.
|
] ++ optionals (pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) [
|
||||||
|
# Misc. x86 keyboard stuff.
|
||||||
"pcips2" "atkbd" "i8042"
|
"pcips2" "atkbd" "i8042"
|
||||||
|
|
||||||
# Needed by the stage 2 init script.
|
# x86 RTC needed by the stage 2 init script.
|
||||||
"rtc_cmos"
|
"rtc_cmos"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
, img ? pkgs.stdenv.platform.kernelTarget
|
, img ? pkgs.stdenv.platform.kernelTarget
|
||||||
, storeDir ? builtins.storeDir
|
, storeDir ? builtins.storeDir
|
||||||
, rootModules ?
|
, rootModules ?
|
||||||
[ "virtio_pci" "virtio_mmio" "virtio_blk" "virtio_balloon" "virtio_rng" "ext4" "unix" "9p" "9pnet_virtio" "rtc_cmos" ]
|
[ "virtio_pci" "virtio_mmio" "virtio_blk" "virtio_balloon" "virtio_rng" "ext4" "unix" "9p" "9pnet_virtio" ]
|
||||||
|
++ pkgs.lib.optional (pkgs.stdenv.isi686 || pkgs.stdenv.isx86_64) "rtc_cmos"
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with pkgs;
|
with pkgs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user