Skip to content

Commit

Permalink
talos: enable v4l2 virtual camera module
Browse files Browse the repository at this point in the history
  • Loading branch information
alarsyo committed Oct 27, 2024
1 parent 2776dce commit e12f7fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hosts/talos/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
# Set Wi-Fi regulatory domain. Currently always set to '00' (world), and could
# lead to bad Wi-Fi performance
boot.kernelParams = ["cfg80211.ieee80211_regdom=FR"];
boot.extraModulePackages = with config.boot.kernelPackages; [
v4l2loopback
];
boot.extraModprobeConfig = ''
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
'';

# Use the systemd-boot EFI boot loader.
boot.loader.systemd-boot = {
Expand Down

0 comments on commit e12f7fe

Please sign in to comment.