Add media recording module
This commit is contained in:
@ -8,6 +8,7 @@
|
|||||||
./desktop/gaming/lutris.nix
|
./desktop/gaming/lutris.nix
|
||||||
./desktop/gaming/steam.nix
|
./desktop/gaming/steam.nix
|
||||||
./desktop/media/graphics.nix
|
./desktop/media/graphics.nix
|
||||||
|
./desktop/media/recording.nix
|
||||||
./dev/cc.nix
|
./dev/cc.nix
|
||||||
./dev/java.nix
|
./dev/java.nix
|
||||||
./dev/lua.nix
|
./dev/lua.nix
|
||||||
|
24
modules/desktop/media/recording.nix
Normal file
24
modules/desktop/media/recording.nix
Normal 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 []);
|
||||||
|
};
|
||||||
|
}
|
Reference in New Issue
Block a user