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:
Vincent Ambo 2020-04-04 02:31:00 +01:00
parent 0473307f87
commit d2d7385833
2 changed files with 13 additions and 0 deletions

View file

@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
{
boot = {
extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
kernelModules = [ "v4l2loopback" ];
extraModprobeConfig = ''
options v4l2loopback exclusive_caps=1
'';
};
}

View file

@ -16,6 +16,7 @@ config: let
in depot.lib.fix(self: {
imports = [
../modules/tailscale.nix
../modules/v4l2loopback.nix
];
hardware = {