1: Updated media.nix to enable the OBS virtual camera
This commit is contained in:
parent
c3239889c2
commit
75552fd1c0
@ -1,8 +1,4 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
{config, ...}: {
|
||||
# Enable sound with pipewire.
|
||||
hardware.pulseaudio.enable = false;
|
||||
security.rtkit.enable = true;
|
||||
@ -19,8 +15,14 @@
|
||||
#media-session.enable = true;
|
||||
};
|
||||
|
||||
# To enable the OBS Virtual Camera
|
||||
boot.extraModulePackages = with config.boot.kernelPackages; [v4l2loopback];
|
||||
boot.kernelModules = [
|
||||
"v4l2loopback"
|
||||
];
|
||||
|
||||
boot.extraModprobeConfig = ''
|
||||
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
||||
'';
|
||||
security.polkit.enable = true;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user