nix-config/hosts/skycam/hardware-configuration.nix
Jordan Holt 6dcd2b0139
All checks were successful
Check flake / build-amd64-linux (push) Successful in 2m36s
Add device tree overlay for skycam
2024-08-03 22:49:29 +01:00

31 lines
600 B
Nix

{ config, lib, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/sd-card/sd-image-aarch64.nix")
];
boot = {
kernelModules = [ "bcm2835-v4l2" ];
kernelParams = [ "cma=512M" ];
supportedFilesystems = lib.mkForce [ "f2fs" "vfat xfs" ];
tmp.cleanOnBoot = true;
};
nixpkgs.overlays = [
(final: super: {
makeModulesClosure = x:
super.makeModulesClosure (x // { allowMissing = true; });
})
];
fileSystems = {
"/" = {
device = "/dev/disk/by-label/NIXOS_SD";
fsType = "ext4";
options = [ "noatime" ];
};
};
}