1
0
Fork 0
nix-config/modules/home/apps/obs/default.nix
2026-02-21 15:45:28 +01:00

38 lines
622 B
Nix

{
config,
lib,
pkgs,
namespace,
...
}:
with lib;
with lib.${namespace};
let
cfg = config.${namespace}.apps.obs;
in
{
options.${namespace}.apps.obs = with types; {
enable = mkBoolOpt false "Whether or not to enable obs.";
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
vulkan-tools
];
home.sessionVariables = {
OBS_VKCAPTURE = "1";
};
programs.obs-studio = {
enable = true;
plugins = with pkgs.obs-studio-plugins; [
wlrobs
obs-backgroundremoval
obs-pipewire-audio-capture
obs-vkcapture
];
};
};
}