module(obs): Refactor obs-studio module from hmModule into nixosModule
This commit is contained in:
parent
149a4057a5
commit
6f35b2ebcc
7 changed files with 5 additions and 7 deletions
|
|
@ -32,6 +32,7 @@
|
|||
kanata.enable = true;
|
||||
tailscale.enable = true;
|
||||
wshowkeys.enable = true;
|
||||
obs.enable = true;
|
||||
};
|
||||
};
|
||||
programs.gnupg.agent = {
|
||||
|
|
|
|||
|
|
@ -51,6 +51,7 @@
|
|||
juicity.client.enable = true;
|
||||
owncast.enable = true;
|
||||
wshowkeys.enable = true;
|
||||
obs.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -26,5 +26,6 @@
|
|||
./radicle.nix
|
||||
./wshowkeys.nix
|
||||
./bash.nix
|
||||
./obs.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
24
nixos/modules/programs/obs.nix
Normal file
24
nixos/modules/programs/obs.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
config,
|
||||
...
|
||||
}: let
|
||||
cfg = config.youthlic.programs.obs;
|
||||
in {
|
||||
options = {
|
||||
youthlic.programs.obs = {
|
||||
enable = lib.mkEnableOption "obs";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
programs.obs-studio = {
|
||||
enable = true;
|
||||
plugins = with pkgs.obs-studio-plugins; [
|
||||
obs-source-record
|
||||
obs-pipewire-audio-capture
|
||||
];
|
||||
enableVirtualCamera = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue