move libcamera stuff into a separate overlay

This commit is contained in:
Travis Staton 2024-01-23 22:00:36 -05:00
parent 2e2c5b13fb
commit 9c35dd99cf
6 changed files with 51 additions and 30 deletions

View file

@ -1,4 +1,4 @@
{ overlay }:
{ core-overlay, libcamera-overlay }:
{ lib, pkgs, config, ... }:
{
@ -12,6 +12,12 @@
type = types.bool;
};
};
libcamera-overlay = {
enable = mkOption {
default = true;
type = types.bool;
};
};
};
};
@ -171,7 +177,11 @@
};
};
nixpkgs = { overlays = [ overlay ]; };
nixpkgs = {
overlays = [ core-overlay ]
++ (if config.raspberry-pi-nix.libcamera-overlay.enable
then [ libcamera-overlay ] else [ ]);
};
boot = {
initrd.availableKernelModules = [
"usbhid"