bonfire/modules/desktop/media/recording.nix

30 lines
739 B
Nix
Raw Normal View History

2023-06-06 23:18:09 +05:00
{ 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 [
2023-06-07 01:28:05 +05:00
unstable.audacity
2023-06-06 23:18:09 +05:00
] else []) ++
(if cfg.video.enable then [
unstable.obs-studio
2023-06-22 15:33:50 +05:00
unstable.obs-studio-plugins.obs-vkcapture
2023-06-06 23:18:09 +05:00
unstable.handbrake
ffmpeg
2023-06-29 15:59:03 +05:00
olive-editor
2023-06-06 23:18:09 +05:00
] else []);
};
}