fix audio issue; update profile config
This commit is contained in:
@@ -39,8 +39,6 @@ in
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "${hostname}";
|
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
system.stateVersion = sysversion;
|
system.stateVersion = sysversion;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,6 +11,29 @@
|
|||||||
intel-media-driver
|
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" =
|
fileSystems."/home/${username}/tmp" =
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -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
|
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
system.stateVersion = sysversion;
|
system.stateVersion = sysversion;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,7 +4,19 @@
|
|||||||
{ config, lib, pkgs, modulesPath, username, ... }:
|
{ 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" =
|
fileSystems."/home/${username}/tmp" =
|
||||||
{
|
{
|
||||||
device = "none";
|
device = "none";
|
||||||
|
|||||||
@@ -38,8 +38,6 @@ in
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "${hostname}";
|
ssss # https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
||||||
|
|
||||||
# https://nixos.wiki/wiki/FAQ/When_do_I_update_stateVersion
|
|
||||||
system.stateVersion = sysversion;
|
system.stateVersion = sysversion;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user