bonfire/modules/desktop/media/recording.nix
2023-06-07 01:28:05 +05:00

28 lines
656 B
Nix

{ config, options, lib, pkgs, ... }:
with lib;
with lib.custom;
let
cfg = config.modules.desktop.media.recording;
in {
options.modules.desktop.media.recording = {
enable = mkBoolOpt false;
audio.enable = mkBoolOpt true;
video.enable = mkBoolOpt true;
};
config = mkIf cfg.enable {
services.pipewire.jack.enable = true;
user.packages = with pkgs;
(if cfg.audio.enable then [
unstable.audacity
] else []) ++
(if cfg.video.enable then [
unstable.obs-studio
unstable.handbrake
ffmpeg
] else []);
};
}