feat(ops/nixos/nugget): Add module for v4l2loopback support
This kernel module creates a fake video input device to which I can stream various things, such as screen grabs or qyliss' video stream for TVL.
This commit is contained in:
parent
0473307f87
commit
d2d7385833
2 changed files with 13 additions and 0 deletions
12
ops/nixos/modules/v4l2loopback.nix
Normal file
12
ops/nixos/modules/v4l2loopback.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
boot = {
|
||||
extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
|
||||
kernelModules = [ "v4l2loopback" ];
|
||||
extraModprobeConfig = ''
|
||||
options v4l2loopback exclusive_caps=1
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
@ -16,6 +16,7 @@ config: let
|
|||
in depot.lib.fix(self: {
|
||||
imports = [
|
||||
../modules/tailscale.nix
|
||||
../modules/v4l2loopback.nix
|
||||
];
|
||||
|
||||
hardware = {
|
||||
|
|
Loading…
Reference in a new issue