From bdbe95c141202a0fe0f8e41abce36c9516e60a46 Mon Sep 17 00:00:00 2001 From: MFlossmann Date: Sun, 1 Sep 2024 00:41:25 +0200 Subject: [PATCH] add obs and fake webcams --- hosts/remus/configuration.nix | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/hosts/remus/configuration.nix b/hosts/remus/configuration.nix index 15d2e0e..9c16ec2 100644 --- a/hosts/remus/configuration.nix +++ b/hosts/remus/configuration.nix @@ -20,6 +20,16 @@ efi.canTouchEfiVariables = true; }; + # for virtual webcams + boot.kernelModules = [ "v4l2loopback"]; + boot.extraModulePackages = with config.boot.kernelPackages; [ + v4l2loopback + ]; + boot.extraModprobeConfig = '' + options v4l2loopback devices=1 video_nr=0 card_label="My OBS Virt Cam" exclusive_caps=1 + ''; + security.polkit.enable = true; + networking = { hostName = "remus"; networkmanager.enable = true; @@ -32,10 +42,14 @@ programs.ssh.askPassword = lib.mkForce "${pkgs.kdePackages.ksshaskpass.out}/bin/ksshaskpass"; - environment.systemPackages = [ - pkgs.ryujinx + environment.systemPackages = with pkgs; [ + ryujinx + v4l-utils + wf-recorder + obs-studio ]; + programs.kdeconnect.enable = true; services.flatpak.enable = true; myNixOS = {