9 cfg = config.programs.immersed-vr;
14 programs.immersed-vr = {
15 enable = lib.mkEnableOption "immersed-vr";
17 package = lib.mkPackageOption pkgs "immersed-vr" {};
21 config = lib.mkIf cfg.enable {
23 kernelModules = [ "v4l2loopback" "snd-aloop" ];
24 extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
25 extraModprobeConfig = ''
26 options v4l2loopback exclusive_caps=1 card_label="v4l2loopback Virtual Camera"
30 environment.systemPackages = [ cfg.package ];
33 meta.maintainers = pkgs.immersed-vr.meta.maintainers;