diff --git a/home/default.nix b/home/default.nix index deafdfd..2565d6e 100644 --- a/home/default.nix +++ b/home/default.nix @@ -12,6 +12,7 @@ ./programs/dunst ./programs/kitty ./programs/rofi + ./programs/obs-studio ./scripts ./zsh ./packages diff --git a/home/packages/default.nix b/home/packages/default.nix index 820f882..0ec7c6c 100644 --- a/home/packages/default.nix +++ b/home/packages/default.nix @@ -18,7 +18,6 @@ ncdu nwg-look mumble - obs-studio pamixer pinentry pre-commit diff --git a/home/programs/obs-studio/default.nix b/home/programs/obs-studio/default.nix new file mode 100644 index 0000000..b635cc7 --- /dev/null +++ b/home/programs/obs-studio/default.nix @@ -0,0 +1,8 @@ +{ pkgs, ... }: { + programs.obs-studio = { + enable = true; + plugins = with pkgs.obs-studio-plugins; [ + obs-backgroundremoval + ]; + }; +} diff --git a/hosts/gunter/configuration.nix b/hosts/gunter/configuration.nix index 63df9a9..daa4d9f 100644 --- a/hosts/gunter/configuration.nix +++ b/hosts/gunter/configuration.nix @@ -17,9 +17,10 @@ boot.loader.efi = { canTouchEfiVariables = true; }; - # boot.extraModprobeConfig = '' - # options nvidia NVreg_RegistryDwords="PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x3; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3" - # ''; + boot.extraModprobeConfig = '' + options nvidia NVreg_RegistryDwords="PowerMizerEnable=0x1; PerfLevelSrc=0x2222; PowerMizerLevel=0x3; PowerMizerDefault=0x3; PowerMizerDefaultAC=0x3" + options v4l2loopback exclusive_caps=1 card_label="Virtual Camera" + ''; # Networking stuff networking.hostName = "gunter"; # Define your hostname. @@ -102,6 +103,7 @@ usbutils vim wget + v4l-utils # X shit # xorg.xorgserver diff --git a/hosts/gunter/hardware-configuration.nix b/hosts/gunter/hardware-configuration.nix index 3afc417..4af6aa2 100644 --- a/hosts/gunter/hardware-configuration.nix +++ b/hosts/gunter/hardware-configuration.nix @@ -11,8 +11,10 @@ boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-amd" ]; - boot.extraModulePackages = [ ]; + boot.kernelModules = [ "kvm-amd" "v4l2loopback" ]; + boot.extraModulePackages = with config.boot.kernelPackages; [ + v4l2loopback + ]; fileSystems."/" = {