From 4abe5367e9474d784ef8fa58da7ff5b173f71f50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Tue, 10 Mar 2026 13:57:06 +0700 Subject: [PATCH] Add Android virtual webcam --- hosts/Aloria/hardware-configuration.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hosts/Aloria/hardware-configuration.nix b/hosts/Aloria/hardware-configuration.nix index c0c505c..e8a3fc3 100644 --- a/hosts/Aloria/hardware-configuration.nix +++ b/hosts/Aloria/hardware-configuration.nix @@ -10,11 +10,13 @@ boot.initrd.availableKernelModules = [ "xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-intel" ]; - boot.extraModulePackages = [ config.boot.kernelPackages.tp_smapi ]; + boot.kernelModules = [ "kvm-intel" "v4l2loopback" ]; + boot.extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback tp_smapi ]; boot.extraModprobeConfig = '' options thinkpad_acpi fan_control=1 + options v4l2loopback exclusive_caps=1 card_label="Android Virtual Camera" ''; + boot.kernelParams = [ "ipv6.disable=1" ]; fileSystems."/" = { device = "rpool/root"; @@ -51,7 +53,7 @@ nixpkgs.config.packageOverrides = pkgs: { zfs = pkgs.zfs_unstable; }; - boot.kernelPackages = pkgs.linuxPackages_latest; + # boot.kernelPackages = pkgs.linuxPackages_latest; # boot.kernelPackages = pkgs.linuxPackages_latest.extend ( self: super: { # ipu6-drivers = super.ipu6-drivers.overrideAttrs ( # final: previous: rec {