Audio config refactor
This commit is contained in:
parent
6288e8414d
commit
0d320cd733
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, lib, ... }: {
|
||||
{ config, pkgs, lib, ... }: {
|
||||
# Pipewire
|
||||
security.rtkit.enable = true;
|
||||
services.pipewire = {
|
||||
|
@ -19,7 +19,12 @@
|
|||
wantedBy = [ "graphical-session.target" ];
|
||||
|
||||
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";
|
||||
Restart = "on-failure";
|
||||
RestartSec = 5;
|
||||
|
|
|
@ -298,6 +298,11 @@
|
|||
drivers = [ pkgs.hplip ];
|
||||
};
|
||||
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
settings = { General = { Disable = "Headset"; }; };
|
||||
};
|
||||
|
||||
# Fix Wireguard NetworkManager connections
|
||||
networking.firewall.checkReversePath = "loose";
|
||||
}
|
||||
|
|
|
@ -39,11 +39,6 @@
|
|||
oci-containers = { backend = "podman"; };
|
||||
};
|
||||
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
settings = { General = { Disable = "Headset"; }; };
|
||||
};
|
||||
|
||||
# Don't suspend when closed and plugged into power
|
||||
services.logind.lidSwitchExternalPower = "lock";
|
||||
|
||||
|
|
|
@ -39,11 +39,6 @@
|
|||
oci-containers = { backend = "podman"; };
|
||||
};
|
||||
|
||||
hardware.bluetooth = {
|
||||
enable = true;
|
||||
settings = { General = { Disable = "Headset"; }; };
|
||||
};
|
||||
|
||||
home-manager.users.agatha = {
|
||||
xsession.windowManager.bspwm = {
|
||||
monitors = {
|
||||
|
|
Loading…
Reference in New Issue