2024-02-12 19:59:10 +00:00
|
|
|
{ pkgs, ... }:
|
2024-02-12 20:25:16 +00:00
|
|
|
|
|
|
|
{
|
2023-06-10 17:11:59 +00:00
|
|
|
imports = [ ../. ];
|
2024-02-12 19:59:10 +00:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
alsa-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
systemd.services.x1-fix = {
|
|
|
|
description = "Use alsa-utils to fix sound interference on Thinkpad x1 Nano";
|
|
|
|
serviceConfig = {
|
|
|
|
Type = "simple";
|
|
|
|
ExecStart = "${pkgs.alsa-tools}/bin/hda-verb /dev/snd/hwC0D0 0x1d SET_PIN_WIDGET_CONTROL 0x0";
|
|
|
|
Restart = "on-failure";
|
|
|
|
};
|
|
|
|
wantedBy = [ "default.target" ];
|
|
|
|
};
|
2023-06-10 17:11:59 +00:00
|
|
|
}
|