magicman: add v4l2loopback virtual camera support
All checks were successful
Run nix flake check / flake-check (push) Successful in 1m59s
Periodic flake update / flake-update (push) Successful in 2m26s

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 11:42:53 +01:00
parent f86f6410b2
commit b44d812aec
2 changed files with 10 additions and 2 deletions

View File

@@ -14,6 +14,10 @@
"rd.udev.log_level=3" "rd.udev.log_level=3"
]; ];
boot.extraModprobeConfig = ''
options v4l2loopback exclusive_caps=1 card_label="Virtual Camera"
'';
boot.loader.systemd-boot.configurationLimit = 3; boot.loader.systemd-boot.configurationLimit = 3;
boot.initrd.systemd.enable = true; boot.initrd.systemd.enable = true;
@@ -85,6 +89,7 @@
wget wget
curl curl
git git
v4l-utils
]; ];
# Do NOT change this value unless you have manually inspected all the changes it would make to your configuration, # Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,

View File

@@ -21,8 +21,11 @@
"sdhci_pci" "sdhci_pci"
]; ];
boot.initrd.kernelModules = [ "i915" ]; boot.initrd.kernelModules = [ "i915" ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [
boot.extraModulePackages = [ ]; "kvm-intel"
"v4l2loopback"
];
boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ];
fileSystems."/" = { fileSystems."/" = {
device = "/dev/disk/by-uuid/31b20f4c-24bb-4fd1-9a3e-8ccc19fe3d64"; device = "/dev/disk/by-uuid/31b20f4c-24bb-4fd1-9a3e-8ccc19fe3d64";