From c659f7ea94866143377af9b88720a4f9eb3a462c Mon Sep 17 00:00:00 2001 From: Miranda Marquez Date: Tue, 26 Mar 2024 10:31:41 -0800 Subject: [PATCH] make droidcam work, and it can be added to obs --- configuration.nix | 9 +++++++++ home.nix | 14 ++++++++------ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/configuration.nix b/configuration.nix index eac94f0..5847555 100644 --- a/configuration.nix +++ b/configuration.nix @@ -7,6 +7,12 @@ { # Bootloader. boot.loader.systemd-boot.enable = true; + boot.kernelModules = [ + "v4l2loopback" + ]; + boot.extraModulePackages = [ + pkgs.linuxPackages.v4l2loopback + ]; nix.settings.experimental-features = [ "nix-command" "flakes" ]; nix.settings.extra-experimental-features = [ "nix-command" "flakes" ]; @@ -158,6 +164,9 @@ vim emacs29-pgtk nfs-utils + v4l-utils + android-tools + adb-sync ]; services.flatpak.enable = true; diff --git a/home.nix b/home.nix index 44f64d5..a83d5e6 100644 --- a/home.nix +++ b/home.nix @@ -23,11 +23,13 @@ with lib.hm.gvariant; pkgs.python3 pkgs.unzip pkgs.ffmpeg - (pkgs.wrapOBS { - plugins = with pkgs.obs-studio-plugins; [ - droidcam-obs - ]; - }) + pkgs.droidcam + pkgs.obs-studio + # (pkgs.wrapOBS { + # plugins = with pkgs.obs-studio-plugins; [ + # droidcam-obs + # ]; + # }) # (pkgs.wrapOBS.override { # obs-studio = @@ -201,7 +203,7 @@ with lib.hm.gvariant; }; # programs.obs-studio = { # enable = true; - # # plugins = [ pkgs.obs-studio-plugins.droidcam-obs ]; + # plugins = [ pkgs.obs-studio-plugins.droidcam-obs ]; # # package = (pkgs.wrapOBS { # # plugins = with pkgs.obs-studio-plugins; [ # # droidcam-obs