9 cfg = config.programs.immersed;
13 (lib.mkRenamedOptionModule
27 enable = lib.mkEnableOption "immersed";
29 package = lib.mkPackageOption pkgs "immersed" { };
33 config = lib.mkIf cfg.enable {
39 extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
40 extraModprobeConfig = ''
41 options v4l2loopback exclusive_caps=1 card_label="v4l2loopback Virtual Camera"
45 environment.systemPackages = [ cfg.package ];
48 meta.maintainers = pkgs.immersed.meta.maintainers;