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) mkIf;
|
||||||
inherit (lib.generators) toLua;
|
inherit (lib.generators) toLua;
|
||||||
inherit (lib.lists) elem optionals;
|
inherit (lib.lists) elem optionals;
|
||||||
# inherit (builtins) elem;
|
inherit (config.ooknet) host;
|
||||||
features = config.ooknet.host.hardware.features;
|
inherit (host.hardware) features;
|
||||||
hasBT = elem "bluetooth" features;
|
hasBT = elem "bluetooth" features;
|
||||||
in {
|
in {
|
||||||
config = mkIf (elem "audio" features) {
|
config = mkIf (elem "audio" features) {
|
||||||
|
|
@ -65,6 +65,13 @@ in {
|
||||||
|
|
||||||
wireplumber = {
|
wireplumber = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
extraConfig = mkIf (host.type == "laptop") {
|
||||||
|
"10-disable-camera" = {
|
||||||
|
"wireplumber.profiles" = {
|
||||||
|
main."monitor.libcamera" = "disabled";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
configPackages = let
|
configPackages = let
|
||||||
matches = toLua {
|
matches = toLua {
|
||||||
multiline = false;
|
multiline = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue