fix audio issue; update profile config

This commit is contained in:
2025-04-21 22:20:13 +08:00
parent 1515efd11a
commit 780a24965d
5 changed files with 37 additions and 18 deletions

View File

@@ -39,8 +39,6 @@ in
}
];
networking.hostName = "${hostname}";
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = sysversion;
}

View File

@@ -11,6 +11,29 @@
intel-media-driver
];
};
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
# If you want to use JACK applications, uncomment this
#jack.enable = true;
wireplumber.extraConfig.bluetoothEnhancements = {
"monitor.bluez.properties" = {
"bluez5.enable-sbc-xq" = true;
"bluez5.enable-msbc" = true;
"bluez5.enable-hw-volume" = true;
"bluez5.roles" = [ "hsp_hs" "hsp_ag" "hfp_hf" "hfp_ag" ];
};
};
};
environment.systemPackages = with pkgs;[
# audio control software
pamixer
];
fileSystems."/home/${username}/tmp" =
{

View File

@@ -58,18 +58,6 @@ in
}
];
environment.systemPackages = with pkgs;[
# audio control software
pamixer
];
# set hdmi audio default device
hardware.pulseaudio = {
enable = true;
support32Bit = true;
extraConfig = "set-card-profile 1 output:alsa_output.pci-0000_00_1f.3.hdmi-stereo";
};
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = sysversion;
}

View File

@@ -4,7 +4,19 @@
{ config, lib, pkgs, modulesPath, username, ... }:
{
# set hdmi audio default device
hardware.pulseaudio = {
enable = true;
support32Bit = true;
extraConfig = "set-card-profile 1 output:alsa_output.pci-0000_00_1f.3.hdmi-stereo";
};
environment.systemPackages = with pkgs;[
# audio control software
pamixer
];
fileSystems."/home/${username}/tmp" =
{
device = "none";

View File

@@ -38,8 +38,6 @@ in
}
];
networking.hostName = "${hostname}";
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
ssss # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
system.stateVersion = sysversion;
}