Enable pipewire on firefox

This commit is contained in:
Thomas Avé 2026-03-13 14:54:25 +07:00
parent 6ed3b6b0e0
commit bbe7834d4d
3 changed files with 20 additions and 20 deletions

View File

@ -47,6 +47,7 @@ in {
Status = "locked"; Status = "locked";
}; };
"privacy.trackingprotection.enabled" = true; "privacy.trackingprotection.enabled" = true;
"media.webrtc.camera.allow-pipewire" = true;
}; };
}; };
}; };

View File

@ -14,13 +14,13 @@
boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"]; boot.initrd.availableKernelModules = ["xhci_pci" "thunderbolt" "nvme" "usb_storage" "sd_mod"];
boot.initrd.kernelModules = []; boot.initrd.kernelModules = [];
boot.kernelModules = ["kvm-intel" "v4l2loopback"]; boot.kernelModules = ["kvm-intel" "v4l2loopback" "intel_vsc" "intel_vsc_csi" "intel_vsc_vbus"];
boot.extraModulePackages = with config.boot.kernelPackages; [v4l2loopback tp_smapi]; boot.extraModulePackages = with config.boot.kernelPackages; [v4l2loopback tp_smapi ipu6-drivers];
boot.extraModprobeConfig = '' boot.extraModprobeConfig = ''
options thinkpad_acpi fan_control=1 options thinkpad_acpi fan_control=1
options v4l2loopback exclusive_caps=1 card_label="Android Virtual Camera" options v4l2loopback exclusive_caps=1 card_label="Android Virtual Camera"
''; '';
boot.kernelParams = ["ipv6.disable=1"]; # boot.kernelParams = ["ipv6.disable=1"];
fileSystems."/" = { fileSystems."/" = {
device = "rpool/root"; device = "rpool/root";
@ -52,24 +52,15 @@
hardware.trackpoint.enable = lib.mkDefault true; hardware.trackpoint.enable = lib.mkDefault true;
hardware.trackpoint.emulateWheel = lib.mkDefault config.hardware.trackpoint.enable; hardware.trackpoint.emulateWheel = lib.mkDefault config.hardware.trackpoint.enable;
hardware.trackpoint.device = "TPPS/2 Synaptics TrackPoint"; hardware.trackpoint.device = "TPPS/2 Synaptics TrackPoint";
hardware.ipu6.enable = true;
hardware.ipu6.platform = "ipu6ep";
nixpkgs.config.packageOverrides = pkgs: { nixpkgs.config.packageOverrides = pkgs: {
zfs = pkgs.zfs_unstable; zfs = pkgs.zfs_unstable;
}; };
# boot.kernelPackages = pkgs.linuxPackages_latest; boot.kernelPackages = pkgs.linuxPackages_latest;
# boot.kernelPackages = pkgs.linuxPackages_latest.extend ( self: super: { hardware.firmware = with pkgs; [
# ipu6-drivers = super.ipu6-drivers.overrideAttrs ( ipu6-camera-bins
# final: previous: rec { ivsc-firmware
# src = builtins.fetchGit { ];
# url = "https://github.com/intel/ipu6-drivers.git"; services.udev.extraRules = ''
# ref = "master"; SUBSYSTEM=="intel-ipu6-psys", MODE="0660", GROUP="video"
# rev = "4bb5b4d8128fbf7f4730cd364a8f7fc13a0ef65b"; '';
# };
# patches = [
# "${src}/patches/0001-v6.10-IPU6-headers-used-by-PSYS.patch"
# ] ;
# }
# );
# } );
} }

View File

@ -48,12 +48,20 @@
services.gnome.sushi.enable = true; services.gnome.sushi.enable = true;
services.pipewire = { services.pipewire = {
wireplumber.enable = true;
enable = true; enable = true;
alsa.enable = true; alsa.enable = true;
alsa.support32Bit = true; alsa.support32Bit = true;
pulse.enable = true; pulse.enable = true;
jack.enable = true; jack.enable = true;
}; };
services.pipewire.wireplumber.extraConfig = {
"99-libcamera" = {
"wireplumber.settings" = {
"camera.use-libcamera" = true;
};
};
};
hardware.bluetooth = { hardware.bluetooth = {
enable = true; enable = true;