module(obs): Refactor obs-studio module from hmModule into nixosModule

This commit is contained in:
ulic-youthlic 2025-06-24 21:42:12 +08:00
parent 149a4057a5
commit 6f35b2ebcc
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
7 changed files with 5 additions and 7 deletions

View file

@ -32,6 +32,7 @@
kanata.enable = true;
tailscale.enable = true;
wshowkeys.enable = true;
obs.enable = true;
};
};
programs.gnupg.agent = {

View file

@ -51,6 +51,7 @@
juicity.client.enable = true;
owncast.enable = true;
wshowkeys.enable = true;
obs.enable = true;
};
};

View file

@ -26,5 +26,6 @@
./radicle.nix
./wshowkeys.nix
./bash.nix
./obs.nix
];
}

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