From 8c78fb0eaa1e16ab7d41f7fa421b342d6a6d1b8a Mon Sep 17 00:00:00 2001 From: ChUrl Date: Sat, 10 Jun 2023 20:13:26 +0200 Subject: [PATCH] Enable v4l2 loopback for obs --- system/modules/systemd-networkd/default.nix | 14 ++++++++++++++ system/nixinator/hardware-configuration.nix | 1 + 2 files changed, 15 insertions(+) diff --git a/system/modules/systemd-networkd/default.nix b/system/modules/systemd-networkd/default.nix index 5318ffa1..5e1086c2 100644 --- a/system/modules/systemd-networkd/default.nix +++ b/system/modules/systemd-networkd/default.nix @@ -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 diff --git a/system/nixinator/hardware-configuration.nix b/system/nixinator/hardware-configuration.nix index 53cd01f2..c1e751c6 100644 --- a/system/nixinator/hardware-configuration.nix +++ b/system/nixinator/hardware-configuration.nix @@ -26,6 +26,7 @@ # Specific to used kernel (currently linux_zen) extraModulePackages = with config.boot.kernelPackages; [ new-lg4ff # Logitech force feedback + v4l2loopback ]; };