This repository has been archived on 2023-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
Files
dotfiles/modules/desktop/media/recording.nix

24 lines
467 B
Nix

{ 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 []);
};
}