2023-03-22 10:35:46 -06:00
|
|
|
{ ... }:
|
2022-08-25 12:21:35 -06:00
|
|
|
|
|
|
|
{
|
|
|
|
fileSystems = {
|
|
|
|
"/" = {
|
|
|
|
device = "/dev/disk/by-label/NIXOS_SD";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
"/tmp" = {
|
|
|
|
device = "/dev/disk/by-label/nix-extra";
|
|
|
|
fsType = "ext4";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
|
|
|
|
hardware.deviceTree = {
|
|
|
|
overlays = [
|
2022-11-23 14:48:08 -07:00
|
|
|
#"${pkgs.raspberrypifw}/share/raspberrypi/boot/overlays/rpi-ft5406.dtbo"
|
|
|
|
{
|
|
|
|
name = "rpi4-cma-overlay";
|
|
|
|
dtsText = ''
|
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
/dts-v1/;
|
|
|
|
/plugin/;
|
|
|
|
/ {
|
|
|
|
compatible = "brcm,bcm2711";
|
|
|
|
fragment@0 {
|
|
|
|
target = <&cma>;
|
|
|
|
__overlay__ {
|
|
|
|
size = <(512 * 1024 * 1024)>;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
'';
|
|
|
|
}
|
2022-08-25 12:21:35 -06:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-11-23 14:48:08 -07:00
|
|
|
#hardware.raspberry-pi."4".fkms-3d.enable = true;
|
2022-08-25 12:21:35 -06:00
|
|
|
}
|