Audio config refactor

This commit is contained in:
Agatha Lovelace 2023-09-29 15:11:40 +02:00
parent 6288e8414d
commit 0d320cd733
Signed by: sorceress
GPG Key ID: 01D0B3AB10CED4F8
4 changed files with 12 additions and 12 deletions

View File

@ -1,4 +1,4 @@
{ pkgs, lib, ... }: { { config, pkgs, lib, ... }: {
# Pipewire # Pipewire
security.rtkit.enable = true; security.rtkit.enable = true;
services.pipewire = { services.pipewire = {
@ -19,7 +19,12 @@
wantedBy = [ "graphical-session.target" ]; wantedBy = [ "graphical-session.target" ];
serviceConfig = { serviceConfig = {
ExecStart = "${pkgs.noisetorch}/bin/noisetorch -i"; ExecStart = "${pkgs.noisetorch}/bin/noisetorch -i -s ${
if config.networking.hostName == "tears" then
"alsa_input.usb-BEHRINGER_UMC202HD_192k-00.HiFi__umc202hd_mono_in_U192k_0_0__source"
else
"alsa_input.pci-0000_00_1f.3.analog-stereo"
}";
ExecStop = "${pkgs.noisetorch}/bin/noisetorch -u"; ExecStop = "${pkgs.noisetorch}/bin/noisetorch -u";
Restart = "on-failure"; Restart = "on-failure";
RestartSec = 5; RestartSec = 5;

View File

@ -298,6 +298,11 @@
drivers = [ pkgs.hplip ]; drivers = [ pkgs.hplip ];
}; };
hardware.bluetooth = {
enable = true;
settings = { General = { Disable = "Headset"; }; };
};
# Fix Wireguard NetworkManager connections # Fix Wireguard NetworkManager connections
networking.firewall.checkReversePath = "loose"; networking.firewall.checkReversePath = "loose";
} }

View File

@ -39,11 +39,6 @@
oci-containers = { backend = "podman"; }; oci-containers = { backend = "podman"; };
}; };
hardware.bluetooth = {
enable = true;
settings = { General = { Disable = "Headset"; }; };
};
# Don't suspend when closed and plugged into power # Don't suspend when closed and plugged into power
services.logind.lidSwitchExternalPower = "lock"; services.logind.lidSwitchExternalPower = "lock";

View File

@ -39,11 +39,6 @@
oci-containers = { backend = "podman"; }; oci-containers = { backend = "podman"; };
}; };
hardware.bluetooth = {
enable = true;
settings = { General = { Disable = "Headset"; }; };
};
home-manager.users.agatha = { home-manager.users.agatha = {
xsession.windowManager.bspwm = { xsession.windowManager.bspwm = {
monitors = { monitors = {