Add media recording module

This commit is contained in:
2023-04-16 22:15:25 +01:00
parent 0ea84413f3
commit 38f8a2507e
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,24 @@
{ config, lib, pkgs, ... }:
with lib;
with lib.my;
let cfg = config.modules.desktop.media.recording;
in {
options.modules.desktop.media.recording = {
audio.enable = mkBoolOpt false;
video.enable = mkBoolOpt false;
};
config = {
user.packages = with pkgs;
(if cfg.audio.enable then [
ardour
audacity
]) ++
(if cfg.video.enable then [
handbrake
mkvtoolnix
obs-studio
] else []);
};
}