niksos/hosts/common/optional/v4l2.nix

18 lines
362 B
Nix

{
config,
pkgs,
...
}: let
inherit (config.poz.other.system) username;
in {
boot = {
extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
kernelModules = [ "v4l2loopback" ];
};
environment.systemPackages = [ pkgs.v4l-utils ];
users.users.${username} = {
extraGroups = [ "video" ];
};
}