global/graphical: init

This commit is contained in:
Infinidoge 2024-07-05 21:59:46 -04:00
parent cf4d656a1a
commit f7354a7b4f
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A

View file

@ -0,0 +1,11 @@
{ lib, pkgs, config, ... }:
lib.mkIf config.info.graphical {
boot.extraModulePackages = with config.boot.kernelPackages; [
v4l2loopback
];
boot.kernelModules = [ "v4l2loopback" ];
boot.extraModprobeConfig = ''
options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1
'';
}