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

@ -11,7 +11,6 @@
./wluma.nix
./niri.nix
./starship
./obs.nix
./fuzzel.nix
./mpv.nix
./swaylock.nix

View file

@ -1,26 +0,0 @@
{
pkgs,
config,
lib,
...
}: 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-vaapi
obs-vkcapture
obs-webkitgtk
obs-pipewire-audio-capture
];
};
};
}