From c78145fc512a703af114aec176658dee872e4e90 Mon Sep 17 00:00:00 2001 From: waltz <79410846+Wa1t5@users.noreply.github.com> Date: Mon, 4 Dec 2023 16:04:01 -0300 Subject: [PATCH] lenovo: add config for ideapad s145-15api --- lenovo/ideapad/s145-15api/default.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 lenovo/ideapad/s145-15api/default.nix diff --git a/lenovo/ideapad/s145-15api/default.nix b/lenovo/ideapad/s145-15api/default.nix new file mode 100644 index 0000000..08b11c7 --- /dev/null +++ b/lenovo/ideapad/s145-15api/default.nix @@ -0,0 +1,18 @@ +{ lib, ... }: + +{ + imports = [ + ../../../common/cpu/amd + ../../../common/gpu/amd + ../../../common/gpu/amd/southern-islands + ]; + + # Blacklist ideapad-laptop because it keeps resetting rfkill devices + boot.blacklistedKernelModules = [ "ideapad-laptop" ]; + + # For some reason we have to specify manually which model we want snd-hda-intel to use + # without it external microphone won't work + boot.extraModprobeConfig = '' + options snd-hda-intel model=alc255-acer,dell-headset-multi + ''; +}