fix pipewire auto-detect
This commit is contained in:
parent
cf35e08566
commit
bd36b05c5f
@ -1,4 +1,4 @@
|
|||||||
{ inputs, config, ... }: {
|
{ inputs, config, pkgs, ... }: {
|
||||||
imports = with inputs.self.nixosModules; [
|
imports = with inputs.self.nixosModules; [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
inputs.self.nixosProfiles.desktop
|
inputs.self.nixosProfiles.desktop
|
||||||
@ -23,13 +23,28 @@
|
|||||||
};
|
};
|
||||||
deviceSpecific.isHost = false;
|
deviceSpecific.isHost = false;
|
||||||
deviceSpecific.isShared = false;
|
deviceSpecific.isShared = false;
|
||||||
deviceSpecific.isGaming = false;
|
deviceSpecific.isGaming = true;
|
||||||
deviceSpecific.enableVirtualisation = false;
|
deviceSpecific.enableVirtualisation = false;
|
||||||
|
|
||||||
boot.blacklistedKernelModules = [
|
boot.blacklistedKernelModules = [
|
||||||
"psmouse"
|
"psmouse"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
services.acpid.handlers = {
|
||||||
|
headphone-plugged = {
|
||||||
|
action = ''
|
||||||
|
${pkgs.sudo}/bin/sudo -u alukard -H XDG_RUNTIME_DIR=/run/user/1000 ${pkgs.pulseaudio}/bin/pactl set-sink-port alsa_output.pci-0000:00:1f.3.analog-stereo analog-output-headphones
|
||||||
|
'';
|
||||||
|
event = "jack/headphone HEADPHONE plug";
|
||||||
|
};
|
||||||
|
headphone-unplugged = {
|
||||||
|
action = ''
|
||||||
|
${pkgs.sudo}/bin/sudo -u alukard -H XDG_RUNTIME_DIR=/run/user/1000 ${pkgs.pulseaudio}/bin/pactl set-sink-port alsa_output.pci-0000:00:1f.3.analog-stereo analog-output-speaker
|
||||||
|
'';
|
||||||
|
event = "jack/headphone HEADPHONE unplug";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.fwupd.enable = true;
|
services.fwupd.enable = true;
|
||||||
|
|
||||||
fileSystems = {
|
fileSystems = {
|
||||||
|
@ -90,7 +90,7 @@ with config.deviceSpecific; {
|
|||||||
(steam.override { withJava = true; })
|
(steam.override { withJava = true; })
|
||||||
steam-run
|
steam-run
|
||||||
] ++ lib.optionals isLaptop [
|
] ++ lib.optionals isLaptop [
|
||||||
# acpi
|
acpi
|
||||||
# blueman
|
# blueman
|
||||||
] ++ lib.optionals (config.device == "AMD-Workstation") [
|
] ++ lib.optionals (config.device == "AMD-Workstation") [
|
||||||
multimc
|
multimc
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
with config.deviceSpecific; {
|
with config.deviceSpecific; {
|
||||||
|
|
||||||
services.acpid.enable = true;
|
services.acpid.enable = true;
|
||||||
|
services.acpid.logEvents = false;
|
||||||
|
|
||||||
services.redshift = {
|
services.redshift = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user