2024-07-15 17:04:39 -04:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}:
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
let
|
2024-06-24 11:38:28 -04:00
|
|
|
cfg = config.aux.system.apps.recording;
|
2024-02-29 09:53:34 -05:00
|
|
|
in
|
|
|
|
{
|
2024-05-07 18:02:59 -04:00
|
|
|
options = {
|
2024-08-02 17:55:48 -04:00
|
|
|
aux.system.apps.recording.enable = lib.mkEnableOption "Enables video editing tools";
|
2024-05-07 18:02:59 -04:00
|
|
|
};
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-08-02 17:55:48 -04:00
|
|
|
config = lib.mkIf cfg.enable {
|
2024-06-24 11:38:28 -04:00
|
|
|
aux.system.ui.flatpak.enable = true;
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-06-10 15:22:27 -04:00
|
|
|
services.flatpak.packages = [
|
|
|
|
"com.obsproject.Studio"
|
|
|
|
"org.kde.kdenlive"
|
|
|
|
"org.tenacityaudio.Tenacity"
|
2024-06-20 09:11:34 -04:00
|
|
|
"io.github.seadve.Kooha"
|
2024-06-10 15:22:27 -04:00
|
|
|
];
|
2024-02-29 09:53:34 -05:00
|
|
|
|
2024-07-15 17:04:39 -04:00
|
|
|
environment.systemPackages = with pkgs; [ droidcam ];
|
|
|
|
|
2024-05-07 18:02:59 -04:00
|
|
|
# Add a virtual camera to use with Droidcam
|
|
|
|
boot = {
|
|
|
|
extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback.out ];
|
|
|
|
kernelModules = [ "v4l2loopback" ];
|
|
|
|
# Note on v4l2loopback kernel module parameters:
|
|
|
|
# exclusive_caps: Skype, Zoom, Teams etc. will only show device when actually streaming. This MUST be set to 1 for Chrome to detect virtual cameras.
|
|
|
|
# card_label: Name of virtual camera, how it'll show up in Skype, Zoom, Teams
|
|
|
|
# https://github.com/umlaeute/v4l2loopback
|
|
|
|
extraModprobeConfig = ''
|
2024-07-16 11:37:02 -04:00
|
|
|
options v4l2loopback exclusive_caps=1 card_label="Droidcam" set_fps=30
|
2024-05-07 18:02:59 -04:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|