Enable v4l2 loopback for obs
This commit is contained in:
@ -28,12 +28,26 @@ in {
|
|||||||
|
|
||||||
# Wireguard VPNs
|
# Wireguard VPNs
|
||||||
systemd.services = cfg.wireguard-tunnels;
|
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
|
environment.etc."rofi-vpns".text = let
|
||||||
names-list = attrNames cfg.wireguard-tunnels;
|
names-list = attrNames cfg.wireguard-tunnels;
|
||||||
names = concatStringsSep "\n" names-list;
|
names = concatStringsSep "\n" names-list;
|
||||||
in
|
in
|
||||||
names;
|
names;
|
||||||
|
|
||||||
|
# Allow to enable/disable tunnels without root password
|
||||||
modules.polkit.allowed-system-services = let
|
modules.polkit.allowed-system-services = let
|
||||||
vpn-services = lib.pipe cfg.wireguard-tunnels [
|
vpn-services = lib.pipe cfg.wireguard-tunnels [
|
||||||
attrNames
|
attrNames
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
# Specific to used kernel (currently linux_zen)
|
# Specific to used kernel (currently linux_zen)
|
||||||
extraModulePackages = with config.boot.kernelPackages; [
|
extraModulePackages = with config.boot.kernelPackages; [
|
||||||
new-lg4ff # Logitech force feedback
|
new-lg4ff # Logitech force feedback
|
||||||
|
v4l2loopback
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user