2024-04-11 00:02:27 +02:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
with lib; let
|
2024-04-12 22:03:29 +02:00
|
|
|
cfg = config.modules.programs.obs;
|
|
|
|
username = config.modules.other.system.username;
|
2024-04-11 00:02:27 +02:00
|
|
|
in {
|
2024-04-12 22:03:29 +02:00
|
|
|
options.modules.programs.obs.enable = mkEnableOption "obs";
|
2024-04-11 00:02:27 +02:00
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
home-manager.users.${username} = {
|
|
|
|
programs.obs-studio = {
|
|
|
|
enable = true;
|
|
|
|
plugins = with pkgs.obs-studio-plugins; [
|
|
|
|
wlrobs
|
|
|
|
obs-backgroundremoval
|
|
|
|
obs-pipewire-audio-capture
|
|
|
|
];
|
|
|
|
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|