feat(nixos:pipewire): add fix to webcam pipewire issue
This commit is contained in:
parent
56fbaafdd0
commit
366fa0ce80
1 changed files with 9 additions and 2 deletions
|
|
@ -7,8 +7,8 @@
|
|||
inherit (lib) mkIf;
|
||||
inherit (lib.generators) toLua;
|
||||
inherit (lib.lists) elem optionals;
|
||||
# inherit (builtins) elem;
|
||||
features = config.ooknet.host.hardware.features;
|
||||
inherit (config.ooknet) host;
|
||||
inherit (host.hardware) features;
|
||||
hasBT = elem "bluetooth" features;
|
||||
in {
|
||||
config = mkIf (elem "audio" features) {
|
||||
|
|
@ -65,6 +65,13 @@ in {
|
|||
|
||||
wireplumber = {
|
||||
enable = true;
|
||||
extraConfig = mkIf (host.type == "laptop") {
|
||||
"10-disable-camera" = {
|
||||
"wireplumber.profiles" = {
|
||||
main."monitor.libcamera" = "disabled";
|
||||
};
|
||||
};
|
||||
};
|
||||
configPackages = let
|
||||
matches = toLua {
|
||||
multiline = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue