nixos-configs/modules/desktop/environment/home/obs.nix
matt1432 49dc072b81
All checks were successful
Discord / discord commits (push) Has been skipped
refactor(modules): make sure nothing is added without setting enable
2025-01-04 19:02:30 -05:00

29 lines
475 B
Nix

self: {
lib,
osConfig,
pkgs,
...
}: let
inherit (self.inputs) nixpkgs-wayland;
waypkgs = nixpkgs-wayland.packages.${pkgs.system};
inherit (lib) mkIf;
cfg = osConfig.roles.desktop;
in {
config = mkIf cfg.enable {
programs = {
obs-studio = {
enable = true;
plugins = [
waypkgs.obs-wlrobs
pkgs.obs-studio-plugins.droidcam-obs
];
};
};
};
# For accurate stack trace
_file = ./obs.nix;
}