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