From 465c5e2bf5b05a4e47b02b717de1e686124ca1ea Mon Sep 17 00:00:00 2001 From: mir Date: Tue, 26 Mar 2024 11:45:55 -0800 Subject: [PATCH] move v4l stuff into obs module --- configuration.nix | 6 ------ modules/droidcam-obs.nix | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/configuration.nix b/configuration.nix index 0ed8135..3d0856f 100644 --- a/configuration.nix +++ b/configuration.nix @@ -7,12 +7,6 @@ { # 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" ]; diff --git a/modules/droidcam-obs.nix b/modules/droidcam-obs.nix index f79ea36..7d2af07 100644 --- a/modules/droidcam-obs.nix +++ b/modules/droidcam-obs.nix @@ -1,6 +1,12 @@ { config, lib, pkgs, ... }: { + boot.kernelModules = [ + "v4l2loopback" + ]; + boot.extraModulePackages = [ + pkgs.linuxPackages.v4l2loopback + ]; environment.systemPackages = with pkgs; [ v4l-utils android-tools