nichts/nyx/homes/notashelf/programs/graphical/apps/obs/default.nix

27 lines
467 B
Nix
Raw Normal View History

2024-04-09 23:11:33 +02:00
{
lib,
pkgs,
osConfig,
...
}: let
inherit (lib) mkIf;
inherit (osConfig) modules;
sys = modules.system;
prg = sys.programs;
in {
config = mkIf prg.obs.enable {
programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins;
[
obs-gstreamer
obs-pipewire-audio-capture
obs-vkcapture
]
++ optional env.isWayland
pkgs.obs-studio-plugins.wlrobs;
};
};
}