Switch to niri - Episode 3: The (second?) purge

This commit is contained in:
Schrottkatze 2025-03-18 18:23:45 +01:00
parent a6e6f38484
commit cc53b33f8e
Signed by: schrottkatze
SSH key fingerprint: SHA256:FPOYVeBy3QP20FEM42uWF1Wa/Qhlk+L3S2+Wuau/Auo
24 changed files with 551 additions and 670 deletions

View file

@ -0,0 +1,33 @@
{
config,
lib,
pkgs,
...
}: let
cfg = config.jade.media.obs;
in
with lib; {
options.jade.desktop.media.obs = mkEnableOption "Enable OBS";
config = mkIf cfg.enable {
# OBS stuffs
environment.systemPackages = [
(pkgs.wrapOBS {
plugins = with pkgs.obs-studio-plugins; [
wlrobs
obs-backgroundremoval
obs-pipewire-audio-capture
];
})
];
boot = {
extraModulePackages = with config.boot.kernelPackages; [
v4l2loopback
];
extraModprobeConfig = ''
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
'';
};
};
}