2018-09-26 03:55:51 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
cfg = config.programs.obs-studio;
|
|
|
|
|
2020-02-01 23:39:17 +00:00
|
|
|
in {
|
2018-09-26 03:55:51 +00:00
|
|
|
meta.maintainers = [ maintainers.adisbladis ];
|
|
|
|
|
|
|
|
options = {
|
|
|
|
programs.obs-studio = {
|
|
|
|
enable = mkEnableOption "obs-studio";
|
|
|
|
|
2021-02-08 20:50:59 +00:00
|
|
|
package = mkOption {
|
|
|
|
type = types.package;
|
|
|
|
default = pkgs.obs-studio;
|
2021-10-09 09:14:08 +00:00
|
|
|
defaultText = literalExpression "pkgs.obs-studio";
|
2021-02-08 20:50:59 +00:00
|
|
|
description = ''
|
|
|
|
OBS Studio package to install.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2021-06-26 21:29:50 +00:00
|
|
|
finalPackage = mkOption {
|
|
|
|
type = types.package;
|
|
|
|
visible = false;
|
|
|
|
readOnly = true;
|
|
|
|
description = "Resulting customized OBS Studio package.";
|
|
|
|
};
|
|
|
|
|
2018-09-26 03:55:51 +00:00
|
|
|
plugins = mkOption {
|
2020-02-01 23:39:17 +00:00
|
|
|
default = [ ];
|
2021-10-09 09:14:08 +00:00
|
|
|
example = literalExpression "[ pkgs.obs-studio-plugins.wlrobs ]";
|
2018-09-26 03:55:51 +00:00
|
|
|
description = "Optional OBS plugins.";
|
|
|
|
type = types.listOf types.package;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
2021-06-26 21:29:50 +00:00
|
|
|
home.packages = [ cfg.finalPackage ];
|
|
|
|
programs.obs-studio.finalPackage =
|
|
|
|
pkgs.wrapOBS.override { obs-studio = cfg.package; } {
|
|
|
|
plugins = cfg.plugins;
|
|
|
|
};
|
2018-09-26 03:55:51 +00:00
|
|
|
};
|
|
|
|
}
|