convert graphical folder to modules
This commit is contained in:
@@ -1,16 +1,26 @@
|
||||
{ config, pkgs, ...}:
|
||||
{lib, config, pkgs, ...}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.kop.graphical.obs;
|
||||
in
|
||||
{
|
||||
# borked in unstable branch
|
||||
#boot = {
|
||||
# kernelModules = ["v4l2loopback"]; # Autostart kernel modules on boot
|
||||
# extraModulePackages = with config.boot.kernelPackages; [v4l2loopback]; # loopback module to make OBS virtual camera work
|
||||
#};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
(wrapOBS {
|
||||
plugins = with obs-studio-plugins; [
|
||||
obs-pipewire-audio-capture
|
||||
];
|
||||
})
|
||||
];
|
||||
options.kop.graphical.obs = {
|
||||
enable = mkEnableOption "Enables obs";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# borked in unstable branch
|
||||
#boot = {
|
||||
# kernelModules = ["v4l2loopback"]; # Autostart kernel modules on boot
|
||||
# extraModulePackages = with config.boot.kernelPackages; [v4l2loopback]; # loopback module to make OBS virtual camera work
|
||||
#};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
(wrapOBS {
|
||||
plugins = with obs-studio-plugins; [
|
||||
obs-pipewire-audio-capture
|
||||
];
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user