Merge pull request #164 from phunehehe/x1
This commit is contained in:
commit
eae378658f
|
@ -70,6 +70,7 @@ See code for all available configurations.
|
||||||
| Lenovo ThinkPad X270 | `<nixos-hardware/lenovo/thinkpad/x270>` |
|
| Lenovo ThinkPad X270 | `<nixos-hardware/lenovo/thinkpad/x270>` |
|
||||||
| Lenovo ThinkPad X280 | `<nixos-hardware/lenovo/thinkpad/x280>` |
|
| Lenovo ThinkPad X280 | `<nixos-hardware/lenovo/thinkpad/x280>` |
|
||||||
| [Lenovo ThinkPad X1 (6th Gen)][] | `<nixos-hardware/lenovo/thinkpad/x1/6th-gen>` |
|
| [Lenovo ThinkPad X1 (6th Gen)][] | `<nixos-hardware/lenovo/thinkpad/x1/6th-gen>` |
|
||||||
|
| [Lenovo ThinkPad X1 (7th Gen)][] | `<nixos-hardware/lenovo/thinkpad/x1/7th-gen>` |
|
||||||
| Lenovo ThinkPad X1 Extreme Gen 2 | `<nixos-hardware/lenovo/thinkpad/x1-extreme/gen2>` |
|
| Lenovo ThinkPad X1 Extreme Gen 2 | `<nixos-hardware/lenovo/thinkpad/x1-extreme/gen2>` |
|
||||||
| [Microsoft Surface Pro 3][] | `<nixos-hardware/microsoft/surface-pro/3>` |
|
| [Microsoft Surface Pro 3][] | `<nixos-hardware/microsoft/surface-pro/3>` |
|
||||||
| PC Engines APU | `<nixos-hardware/pcengines/apu>` |
|
| PC Engines APU | `<nixos-hardware/pcengines/apu>` |
|
||||||
|
@ -97,6 +98,7 @@ See code for all available configurations.
|
||||||
[Google Pixelbook]: google/pixelbook
|
[Google Pixelbook]: google/pixelbook
|
||||||
[Inverse Path USB armory]: inversepath/usbarmory
|
[Inverse Path USB armory]: inversepath/usbarmory
|
||||||
[Lenovo ThinkPad X1 (6th Gen)]: lenovo/thinkpad/x1/6th-gen
|
[Lenovo ThinkPad X1 (6th Gen)]: lenovo/thinkpad/x1/6th-gen
|
||||||
|
[Lenovo ThinkPad X1 (7th Gen)]: lenovo/thinkpad/x1/7th-gen
|
||||||
[Lenovo ThinkPad X260]: lenovo/thinkpad/x260
|
[Lenovo ThinkPad X260]: lenovo/thinkpad/x260
|
||||||
[Microsoft Surface Pro 3]: microsoft/surface-pro/3
|
[Microsoft Surface Pro 3]: microsoft/surface-pro/3
|
||||||
[Raspberry Pi 2]: raspberry-pi/2
|
[Raspberry Pi 2]: raspberry-pi/2
|
||||||
|
|
15
lenovo/thinkpad/x1/7th-gen/audio.nix
Normal file
15
lenovo/thinkpad/x1/7th-gen/audio.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{ lib, pkgs, ... }:
|
||||||
|
{
|
||||||
|
# This can be removed when the default kernel is at least version 5.6
|
||||||
|
# https://github.com/NixOS/nixpkgs/pull/86168
|
||||||
|
boot.kernelPackages = lib.mkIf
|
||||||
|
(lib.versionOlder pkgs.linux.version "5.6")
|
||||||
|
(lib.mkDefault pkgs.linuxPackages_5_6);
|
||||||
|
|
||||||
|
# This can be removed when PulseAudio is at least version 14
|
||||||
|
# https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_7)#Audio
|
||||||
|
hardware.pulseaudio.extraConfig = ''
|
||||||
|
load-module module-alsa-sink device=hw:0,0 channels=4
|
||||||
|
load-module module-alsa-source device=hw:0,6 channels=4
|
||||||
|
'';
|
||||||
|
}
|
7
lenovo/thinkpad/x1/7th-gen/default.nix
Normal file
7
lenovo/thinkpad/x1/7th-gen/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../.
|
||||||
|
../../../../common/pc/laptop/acpi_call.nix
|
||||||
|
./audio.nix
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in a new issue