From 1ca14c360ef7b55a59c67295429b5ab94c0029b8 Mon Sep 17 00:00:00 2001 From: roxwize Date: Sat, 25 Jan 2025 00:39:16 -0500 Subject: [PATCH] ~ --- nixos/hosts/base.nix | 11 ++++++++++- nixos/packages.nix | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/nixos/hosts/base.nix b/nixos/hosts/base.nix index 53ba522..e90408a 100644 --- a/nixos/hosts/base.nix +++ b/nixos/hosts/base.nix @@ -1,9 +1,18 @@ -{ pkgs, inputs, ... }: +{ config, pkgs, inputs, ... }: { imports = [ ../packages.nix ]; + boot = { + extraModulePackages = with config.boot.kernelPackages; [ v4l2loopback ]; + extraModprobeConfig = '' + options v4l2loopback devices=1 video_nr=1 card_label="OBS Cam" exclusive_caps=1 + ''; + }; + + security.polkit.enable = true; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; nixpkgs = { config.allowUnfree = true; diff --git a/nixos/packages.nix b/nixos/packages.nix index 80f9d48..43c7758 100644 --- a/nixos/packages.nix +++ b/nixos/packages.nix @@ -44,6 +44,7 @@ posy-cursors # Posy's Improved Cursors for Linux pantheon.elementary-gtk-theme # GTK theme designed to be smooth, attractive, fast, and usable # internet + ngrok # Allows you to expose a web server running on your local machine to the internet nicotine-plus # Graphical client for the SoulSeek peer-to-peer system slack # Desktop client for Slack vesktop # Alternate client for Discord with Vencord built-in @@ -92,6 +93,7 @@ catppuccin-sddm # Soothing pastel theme for SDDM kdePackages.kdenlive # Free and open source video editor, based on MLT Framework and KDE Frameworks nmap # Free and open source utility for network discovery and security auditing + obs-studio # Free and open source software for video recording and live streaming qemu_kvm # Generic and open source machine emulator and virtualizer ]; }