mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-11-08 19:46:03 +01:00
default configuration
This commit is contained in:
parent
9f89c2dcf5
commit
cb52f6ef86
2 changed files with 14 additions and 18 deletions
|
|
@ -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 = { };
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue