mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-26 21:09:42 +01:00
Merge pull request #880 from jalseth/x13-amd
Add Thinkpad X13 Gen1 AMD variant
This commit is contained in:
commit
9a763a7acc
8 changed files with 48 additions and 15 deletions
|
@ -224,7 +224,8 @@ See code for all available configurations.
|
|||
| [Lenovo ThinkPad X1 Nano Gen 1](lenovo/thinkpad/x1-nano/gen1) | `<nixos-hardware/lenovo/thinkpad/x1-nano/gen1>` |
|
||||
| [Lenovo ThinkPad X13 Yoga](lenovo/thinkpad/x13/yoga) | `<nixos-hardware/lenovo/thinkpad/x13/yoga>` |
|
||||
| [Lenovo ThinkPad X13 Yoga (3th Gen)](lenovo/thinkpad/x13/yoga/3th-gen) | `<nixos-hardware/lenovo/thinkpad/x13/yoga/3th-gen>` |
|
||||
| [Lenovo ThinkPad X13](lenovo/thinkpad/x13) | `<nixos-hardware/lenovo/thinkpad/x13>` |
|
||||
| [Lenovo ThinkPad X13 (Intel)](lenovo/thinkpad/x13/intel) | `<nixos-hardware/lenovo/thinkpad/x13/intel>` |
|
||||
| [Lenovo ThinkPad X13 (AMD)](lenovo/thinkpad/x13/amd) | `<nixos-hardware/lenovo/thinkpad/x13/amd>` |
|
||||
| [Lenovo ThinkPad X140e](lenovo/thinkpad/x140e) | `<nixos-hardware/lenovo/thinkpad/x140e>` |
|
||||
| [Lenovo ThinkPad X200s](lenovo/thinkpad/x200s) | `<nixos-hardware/lenovo/thinkpad/x200s>` |
|
||||
| [Lenovo ThinkPad X220](lenovo/thinkpad/x220) | `<nixos-hardware/lenovo/thinkpad/x220>` |
|
||||
|
|
|
@ -159,7 +159,8 @@
|
|||
lenovo-thinkpad-x1-extreme-gen4 = import ./lenovo/thinkpad/x1-extreme/gen4;
|
||||
lenovo-thinkpad-x1-nano = import ./lenovo/thinkpad/x1-nano;
|
||||
lenovo-thinkpad-x1-nano-gen1 = import ./lenovo/thinkpad/x1-nano/gen1;
|
||||
lenovo-thinkpad-x13 = import ./lenovo/thinkpad/x13;
|
||||
lenovo-thinkpad-x13 = import ./lenovo/thinkpad/x13/intel;
|
||||
lenovo-thinkpad-x13-amd = import ./lenovo/thinkpad/x13/amd;
|
||||
lenovo-thinkpad-x13-yoga = import ./lenovo/thinkpad/x13/yoga;
|
||||
lenovo-thinkpad-x13-yoga-3th-gen = import ./lenovo/thinkpad/x13/yoga/3th-gen;
|
||||
lenovo-thinkpad-x140e = import ./lenovo/thinkpad/x140e;
|
||||
|
|
12
lenovo/thinkpad/x13/OLD-BEHAVIOUR-DEPRECATED.md
Normal file
12
lenovo/thinkpad/x13/OLD-BEHAVIOUR-DEPRECATED.md
Normal file
|
@ -0,0 +1,12 @@
|
|||
# Thinkpad X13 Deprecations
|
||||
|
||||
## Overview
|
||||
|
||||
The X13 has multiple variants. Originally, the configs only supported Intel
|
||||
hardware.
|
||||
|
||||
## How to update
|
||||
|
||||
If you previously imported the module under `lenovo/thinkpad/x13`, you can now
|
||||
import `lenovo/thinkpad/x13/intel` instead. Users with the AMD variant should
|
||||
import `lenovo/thinkpad/x13/amd`.
|
6
lenovo/thinkpad/x13/amd/default.nix
Normal file
6
lenovo/thinkpad/x13/amd/default.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ ... }: {
|
||||
imports = [
|
||||
../common.nix
|
||||
../../../../common/cpu/amd
|
||||
];
|
||||
}
|
10
lenovo/thinkpad/x13/common.nix
Normal file
10
lenovo/thinkpad/x13/common.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{ ... }: {
|
||||
imports = [
|
||||
../.
|
||||
../../../common/pc/laptop/acpi_call.nix
|
||||
../../../common/pc/laptop/ssd
|
||||
];
|
||||
|
||||
# Somehow psmouse does not load automatically on boot for me
|
||||
boot.initrd.kernelModules = [ "psmouse" ];
|
||||
}
|
|
@ -1,12 +1,8 @@
|
|||
{ ... }: {
|
||||
# Reference to hardware: https://certification.ubuntu.com/hardware/202004-27844
|
||||
imports = [
|
||||
../.
|
||||
../../../common/cpu/intel
|
||||
../../../common/pc/laptop/acpi_call.nix
|
||||
../../../common/pc/laptop/ssd
|
||||
{
|
||||
assertions = [
|
||||
{
|
||||
assertion = false;
|
||||
message = "Importing the x13/ (default.nix) directly is deprecated! See https://github.com/NixOS/nixos-hardware/blob/master/lenovo/thinkpad/x13/OLD-BEHAVIOUR-DEPRECATED.md for more details.";
|
||||
}
|
||||
];
|
||||
|
||||
# Somehow psmouse does not load automatically on boot for me
|
||||
boot.initrd.kernelModules = [ "psmouse" ];
|
||||
}
|
||||
|
|
7
lenovo/thinkpad/x13/intel/default.nix
Normal file
7
lenovo/thinkpad/x13/intel/default.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ ... }: {
|
||||
# Reference to hardware: https://certification.ubuntu.com/hardware/202004-27844
|
||||
imports = [
|
||||
../common.nix
|
||||
../../../../common/cpu/intel
|
||||
];
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{ config, lib, ... }: {
|
||||
imports = [
|
||||
../.
|
||||
../intel
|
||||
../../yoga.nix
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in a new issue