Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixos-hardware
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3cffbd596197
Choose a base ref
...
head repository: NixOS/nixos-hardware
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 46a68df83741
Choose a head ref
  • 3 commits
  • 5 files changed
  • 2 contributors

Commits on Oct 26, 2020

  1. t14s: add comment

    Add commend about suspending to RAM and fingerprint sensor.
    dadada committed Oct 26, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    dadada Tim Schubert
    Copy the full SHA
    81b5488 View commit details
  2. t14s: add AMD Gen1 model

    t14s: fix minimum required kernel version
    dadada committed Oct 26, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    dadada Tim Schubert
    Copy the full SHA
    04c79af View commit details

Commits on Oct 29, 2020

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    46a68df View commit details
Showing with 26 additions and 1 deletion.
  1. +1 −0 README.md
  2. +1 −0 flake.nix
  3. +11 −0 lenovo/thinkpad/t14s/amd/default.nix
  4. +8 −0 lenovo/thinkpad/t14s/amd/gen1/default.nix
  5. +5 −1 lenovo/thinkpad/t14s/default.nix
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -101,6 +101,7 @@ See code for all available configurations.
| Lenovo ThinkPad L14 (AMD) | `<nixos-hardware/lenovo/thinkpad/l14/amd> |
| Lenovo ThinkPad P53 | `<nixos-hardware/lenovo/thinkpad/p53>` |
| Lenovo ThinkPad T14s | `<nixos-hardware/lenovo/thinkpad/t14s>` |
| Lenovo ThinkPad T14s AMD Gen 1 | `<nixos-hardware/lenovo/thinkpad/t14s/amd/gen1>` |
| Lenovo ThinkPad T410 | `<nixos-hardware/lenovo/thinkpad/t410>` |
| Lenovo ThinkPad T420 | `<nixos-hardware/lenovo/thinkpad/t420>` |
| Lenovo ThinkPad T430 | `<nixos-hardware/lenovo/thinkpad/t430>` |
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -35,6 +35,7 @@
lenovo-thinkpad-l14-amd = import ./lenovo/thinkpad/l14/amd;
lenovo-thinkpad-p53 = import ./lenovo/thinkpad/p53;
lenovo-thinkpad-t14s = import ./lenovo/thinkpad/t14s;
lenovo-thinkpad-t14s-amd-gen1 = import ./lenovo/thinkpad/t14s/amd/gen1;
lenovo-thinkpad-t410 = import ./lenovo/thinkpad/t410;
lenovo-thinkpad-t420 = import ./lenovo/thinkpad/t420;
lenovo-thinkpad-t430 = import ./lenovo/thinkpad/t430;
11 changes: 11 additions & 0 deletions lenovo/thinkpad/t14s/amd/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{ config, lib, pkgs, ... }:

{
imports = [
../.
../../../../common/cpu/amd
];

# For support of newer AMD GPUs, backlight and internal microphone
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.8") pkgs.linuxPackages_latest;
}
8 changes: 8 additions & 0 deletions lenovo/thinkpad/t14s/amd/gen1/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

{ config, lib, pkgs, ... }:

{
imports = [
../.
];
}
6 changes: 5 additions & 1 deletion lenovo/thinkpad/t14s/default.nix
Original file line number Diff line number Diff line change
@@ -3,10 +3,14 @@
{
imports = [
../.
../../../common/cpu/amd
../../../common/pc/laptop/acpi_call.nix
];

# For suspending to RAM to work, set Config -> Power -> Sleep State to "Linux" in EFI.
# See https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_6)#Suspend_issues

# Fingerprint sensor requires a firmware-update to work.

# Force use of the thinkpad_acpi driver for backlight control.
# This allows the backlight save/load systemd service to work.
boot.kernelParams = [ "acpi_backlight=native" ];