add obs
This commit is contained in:
parent
0b828b6e65
commit
f1459fe73e
3 changed files with 51 additions and 21 deletions
29
modules/home/apps/obs/default.nix
Normal file
29
modules/home/apps/obs/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
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 {
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
wlrobs
|
||||
obs-backgroundremoval
|
||||
obs-pipewire-audio-capture
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue