2023-09-21 22:09:13 +00:00
|
|
|
{pkgs, lib, modulesPath, ...}:
|
2023-08-03 20:00:12 +00:00
|
|
|
{
|
2023-09-21 22:09:13 +00:00
|
|
|
imports = [
|
|
|
|
"${modulesPath}/installer/sd-card/sd-image-aarch64.nix"
|
|
|
|
];
|
2023-08-03 20:00:12 +00:00
|
|
|
nixpkgs.hostPlatform.system = "aarch64-linux";
|
|
|
|
sdImage.imageName = "orange.img";
|
|
|
|
|
2023-09-20 22:37:50 +00:00
|
|
|
boot.loader.raspberryPi.version = 4;
|
2023-09-20 22:53:36 +00:00
|
|
|
boot.supportedFilesystems = lib.mkForce [ "btrfs" "cifs" "f2fs" "jfs" "ntfs" "reiserfs" "vfat" "xfs" ];
|
2023-09-20 22:37:50 +00:00
|
|
|
|
|
|
|
hardware.raspberry-pi."4" = {
|
2023-09-20 22:53:36 +00:00
|
|
|
fkms-3d.enable = true;
|
|
|
|
apply-overlays-dtmerge.enable = true;
|
2023-09-21 09:09:06 +00:00
|
|
|
audio.enable = false;
|
2023-09-20 22:37:50 +00:00
|
|
|
};
|
2023-09-20 22:53:36 +00:00
|
|
|
|
2023-09-21 09:09:06 +00:00
|
|
|
boot.blacklistedKernelModules = [ "snd_bcm2835" ];
|
|
|
|
|
2023-09-20 22:37:50 +00:00
|
|
|
console.enable = false;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
libraspberrypi
|
|
|
|
raspberrypi-eeprom
|
|
|
|
];
|
2023-08-03 20:00:12 +00:00
|
|
|
|
2023-09-20 23:19:09 +00:00
|
|
|
networking.hostName = "melodypond";
|
2023-08-03 20:00:12 +00:00
|
|
|
}
|