Files
nixos-haus/hosts/box/hardware-configuration.nix
2022-01-01 02:15:22 +02:00

34 lines
597 B
Nix

{
config,
lib,
pkgs,
...
}: {
boot.blacklistedKernelModules = [
"btbcm"
"hci_uart"
"hci_bcm"
];
boot = {
kernelPackages = pkgs.linuxKernel.packages.linux_rpi4;
initrd.availableKernelModules = ["xhci_pci" "usbhid" "usb_storage"];
loader = {
grub.enable = false;
generic-extlinux-compatible.enable = true;
};
};
fileSystems = {
"/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
options = ["noatime"];
};
};
hardware.bluetooth.enable = true;
hardware.enableRedistributableFirmware = true;
}