nixos-config/1systems/cake/hardware-config.nix
2023-07-05 15:26:37 +02:00

16 lines
449 B
Nix

{ pkgs, lib, nixos-hardware,... }:
{
environment.systemPackages = [ pkgs.libraspberrypi ];
imports = [ nixos-hardware.nixosModules.raspberry-pi-4 ];
boot.kernelPackages = pkgs.linuxPackages_rpi4;
fileSystems = {
"/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
options = [ "noatime" ];
};
};
hardware.raspberry-pi."4".fkms-3d.enable = true;
hardware.raspberry-pi."4".audio.enable = true;
}