set boot.initrd.systemd.enable = false
when uboot is disabled #24
Description
Hello!
Not sure what I am doing wrong. Trying to generate a SD card image from my config. The problem is that the resulting SD image only contains /sbin/init
and /nix/store
(see screenshot). According to the source code of this flake, this seems to be intended behaviour, however, the system doesn't boot - it complains about /proc
, /sys
, /dev
missing and can't mount the relevant filesystems. Also, root=fstab
is added to cmdline.txt
in addition to the correct root=PARTUUID=2178694e-02
. I believe it is intended for systemd
running in an initrd, however there seems to be no initrd because if I keep this option the kernel tries to mount rootfs from fstab
device which is obviously not available, and panics. Could you please give any insights on what could be wrong? Thanks!
{ pkgs, inputs, ... }: {
imports = [
inputs.raspberry-pi-nix.nixosModules.raspberry-pi
../common/global
../common/users/sergey
];
networking = {
hostName = "rpi5";
networkmanager.enable = true;
};
time.timeZone = "Europe/Amsterdam";
users.users.root.initialPassword = "root";
boot.initrd.systemd.enableTpm2 = false;
# libcamera build fails if this is enabled
raspberry-pi-nix.libcamera-overlay.enable = false;
hardware.raspberry-pi = {
config = {
all = {
options = {
usb_max_current_enable = {
enable = true;
value = true;
};
};
dt-overlays = {
# hack to generate dtparam=nvme
vc4-kms-v3d = {
enable = true;
params = { nvme = { enable = true; }; };
};
};
base-dt-params = {
pciex1_1 = {
enable = true;
value = "gen3";
};
};
};
};
};
i18n = {
defaultLocale = "en_US.UTF-8";
};
services.udisks2.enable = true;
environment.systemPackages = with pkgs; [
wget
];
system.stateVersion = "24.05";
}