From 1fc0a85b752bc67aa2b0d4fd7837a12113e4684a Mon Sep 17 00:00:00 2001 From: Aly Raffauf Date: Wed, 14 Aug 2024 10:11:56 -0400 Subject: [PATCH] hosts/common: disable monitor.libcamera to avoid camera always on --- hosts/common/default.nix | 1 + hosts/common/pipewireFix.nix | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 hosts/common/pipewireFix.nix diff --git a/hosts/common/default.nix b/hosts/common/default.nix index 3b1cec32..cc39ab03 100644 --- a/hosts/common/default.nix +++ b/hosts/common/default.nix @@ -3,6 +3,7 @@ ./locale.nix ./network.nix ./nix.nix + ./pipewireFix.nix ./samba.nix ./secrets.nix ]; diff --git a/hosts/common/pipewireFix.nix b/hosts/common/pipewireFix.nix new file mode 100644 index 00000000..f583ee43 --- /dev/null +++ b/hosts/common/pipewireFix.nix @@ -0,0 +1,11 @@ +{ + services.pipewire.wireplumber.extraConfig = { + "10-disable-camera" = { + "wireplumber.profiles" = { + main = { + "monitor.libcamera" = "disabled"; + }; + }; + }; + }; +}