mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-11-08 19:46:03 +01:00
move libcamera stuff into a separate overlay
This commit is contained in:
parent
2e2c5b13fb
commit
9c35dd99cf
6 changed files with 51 additions and 30 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue