2024-06-17 19:23:30 +00:00
|
|
|
{
|
|
|
|
nixos-hardware,
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
networking.hostName = "devterm";
|
|
|
|
imports = [
|
|
|
|
./desktop.nix
|
|
|
|
nixos-hardware.nixosModules.raspberry-pi-4
|
|
|
|
];
|
|
|
|
hardware = {
|
|
|
|
raspberry-pi."4" = {
|
2024-06-18 18:12:00 +00:00
|
|
|
#apply-overlays-dtmerge.enable = true;
|
|
|
|
#fkms-3d.enable = true;
|
|
|
|
#audio.enable = true;
|
2024-06-17 19:23:30 +00:00
|
|
|
};
|
|
|
|
deviceTree = {
|
|
|
|
enable = true;
|
2024-06-17 19:32:10 +00:00
|
|
|
#filter = "*rpi-4-*.dtb";
|
2024-06-17 19:23:30 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
console.enable = false;
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
libraspberrypi
|
|
|
|
raspberrypi-eeprom
|
|
|
|
];
|
|
|
|
system.stateVersion = "24.05";
|
|
|
|
fileSystems."/" = {
|
|
|
|
device = "/dev/mmcblk0p2";
|
|
|
|
fsType = "btrfs";
|
|
|
|
options = ["compress=zstd"];
|
|
|
|
};
|
|
|
|
|
|
|
|
fileSystems."/boot" = {
|
|
|
|
device = "/dev/mmcblk0p1";
|
|
|
|
fsType = "vfat";
|
|
|
|
};
|
|
|
|
}
|