1

Enable v4l2 loopback for obs

This commit is contained in:
2023-06-10 20:13:26 +02:00
parent ff696b2b83
commit 051c65a1c4
2 changed files with 15 additions and 0 deletions

View File

@ -28,12 +28,26 @@ in {
# Wireguard VPNs
systemd.services = cfg.wireguard-tunnels;
# NOTE: I can connect to TU Dortmund directly
# TODO: Use config with netns, like with wireguard
# services.openvpn.servers = {
# # TODO: Can't read config file...
# tu-dortmund-irb = {
# autoStart = false;
# config = "config ~/NixFlake/config/openvpn/tu-dortmund-irb.ovpn";
# };
# };
# TODO: Rewrite with lib.pipe
# Generate list of vpns for rofi menu
environment.etc."rofi-vpns".text = let
names-list = attrNames cfg.wireguard-tunnels;
names = concatStringsSep "\n" names-list;
in
names;
# Allow to enable/disable tunnels without root password
modules.polkit.allowed-system-services = let
vpn-services = lib.pipe cfg.wireguard-tunnels [
attrNames

View File

@ -26,6 +26,7 @@
# Specific to used kernel (currently linux_zen)
extraModulePackages = with config.boot.kernelPackages; [
new-lg4ff # Logitech force feedback
v4l2loopback
];
};