1
0
Fork 0
mirror of https://github.com/NixOS/nixos-hardware synced 2024-12-23 01:59:45 +01:00
nixos-hardware/lenovo/thinkpad/x1-nano/gen1/default.nix

20 lines
447 B
Nix
Raw Normal View History

{ pkgs, ... }:
2024-02-12 21:25:16 +01:00
{
imports = [ ../. ];
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" ];
};
}