default configuration

This commit is contained in:
Travis Staton 2023-03-06 10:51:20 -05:00
parent 9f89c2dcf5
commit cb52f6ef86
2 changed files with 14 additions and 18 deletions

View file

@ -8,9 +8,6 @@
# generated config.txt # generated config.txt
system.activationScripts.raspberrypi = { system.activationScripts.raspberrypi = {
text = '' text = ''
if ! grep -qs '/boot/firmware ' /proc/mounts; then
mount /dev/disk/by-label/${config.sdImage.firmwarePartitionName} /boot/firmware
fi
cp ${pkgs.uboot_rpi_arm64}/u-boot.bin /boot/firmware/u-boot-rpi-arm64.bin cp ${pkgs.uboot_rpi_arm64}/u-boot.bin /boot/firmware/u-boot-rpi-arm64.bin
cp -r ${pkgs.raspberrypifw}/share/raspberrypi/boot/{start*.elf,*.dtb,bootcode.bin,fixup*.dat,overlays} /boot/firmware cp -r ${pkgs.raspberrypifw}/share/raspberrypi/boot/{start*.elf,*.dtb,bootcode.bin,fixup*.dat,overlays} /boot/firmware
cp ${config.hardware.raspberry-pi.config-output} /boot/firmware/config.txt cp ${config.hardware.raspberry-pi.config-output} /boot/firmware/config.txt
@ -23,16 +20,16 @@
cm4 = { cm4 = {
options = { options = {
otg_mode = { otg_mode = {
enable = true; enable = lib.mkDefault true;
value = true; value = lib.mkDefault true;
}; };
}; };
}; };
pi4 = { pi4 = {
options = { options = {
arm_boost = { arm_boost = {
enable = true; enable = lib.mkDefault true;
value = true; value = lib.mkDefault true;
}; };
}; };
}; };
@ -53,26 +50,26 @@
value = true; value = true;
}; };
avoid_warnings = { avoid_warnings = {
enable = true; enable = lib.mkDefault true;
value = true; value = lib.mkDefault true;
}; };
camera_auto_detect = { camera_auto_detect = {
enable = true; enable = lib.mkDefault true;
value = true; value = lib.mkDefault true;
}; };
display_auto_detect = { display_auto_detect = {
enable = true; enable = lib.mkDefault true;
value = true; value = lib.mkDefault true;
}; };
disable_overscan = { disable_overscan = {
enable = true; enable = lib.mkDefault true;
value = true; value = lib.mkDefault true;
}; };
}; };
dt-overlays = { dt-overlays = {
vc4-kms-v3d = { vc4-kms-v3d = {
enable = true; enable = lib.mkDefault true;
params = { cma-256 = { enable = true; }; }; params = { };
}; };
}; };
}; };

View file

@ -162,7 +162,6 @@ in {
"/boot/firmware" = { "/boot/firmware" = {
device = "/dev/disk/by-label/${config.sdImage.firmwarePartitionName}"; device = "/dev/disk/by-label/${config.sdImage.firmwarePartitionName}";
fsType = "vfat"; fsType = "vfat";
options = [ "nofail" "noauto" ];
}; };
"/" = { "/" = {
device = "/dev/disk/by-label/NIXOS_SD"; device = "/dev/disk/by-label/NIXOS_SD";