nichts/nyx/homes/notashelf/programs/graphical/apps/obs/default.nix
2024-04-09 23:11:33 +02:00

26 lines
467 B
Nix

{
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;
};
};
}