mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-25 06:18:44 +01:00
24 lines
477 B
Nix
24 lines
477 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
...
|
|
}: {
|
|
environment.systemPackages = [
|
|
(pkgs.wrapOBS {
|
|
plugins = with pkgs.obs-studio-plugins; [
|
|
wlrobs
|
|
obs-backgroundremoval
|
|
obs-pipewire-audio-capture
|
|
];
|
|
})
|
|
];
|
|
|
|
boot.extraModulePackages = with config.boot.kernelPackages; [
|
|
v4l2loopback
|
|
];
|
|
boot.extraModprobeConfig = ''
|
|
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
|
|
'';
|
|
security.polkit.enable = true;
|
|
}
|