lenovo/thinkpad: Refactor of yogas
This commit is contained in:
parent
6a77d708e7
commit
c076216644
|
@ -102,7 +102,7 @@ See code for all available configurations.
|
|||
| [Lenovo ThinkPad E470](lenovo/thinkpad/e470) | `<nixos-hardware/lenovo/thinkpad/e470>` |
|
||||
| [Lenovo ThinkPad E495](lenovo/thinkpad/e495) | `<nixos-hardware/lenovo/thinkpad/e495>` |
|
||||
| [Lenovo ThinkPad L13](lenovo/thinkpad/l13) | `<nixos-hardware/lenovo/thinkpad/l13>` |
|
||||
| [Lenovo ThinkPad L13 Yoga](lenovo/thinkpad/l13-yoga) | `<nixos-hardware/lenovo/thinkpad/l13-yoga>` |
|
||||
| [Lenovo ThinkPad L13 Yoga](lenovo/thinkpad/l13/yoga.nix) | `<nixos-hardware/lenovo/thinkpad/l13/yoga.nix>` |
|
||||
| [Lenovo ThinkPad L14 (Intel)](lenovo/thinkpad/l14/intel) | `<nixos-hardware/lenovo/thinkpad/l14/intel>` |
|
||||
| [Lenovo ThinkPad L14 (AMD)](lenovo/thinkpad/l14/amd) | `<nixos-hardware/lenovo/thinkpad/l14/amd>` |
|
||||
| [Lenovo ThinkPad P1](thinkpad/p1) | `<nixos-hardware/lenovo/thinkpad/p1>` |
|
||||
|
@ -125,7 +125,7 @@ See code for all available configurations.
|
|||
| [Lenovo ThinkPad T480s](lenovo/thinkpad/t480s) | `<nixos-hardware/lenovo/thinkpad/t480s>` |
|
||||
| [Lenovo ThinkPad T490](lenovo/thinkpad/t490) | `<nixos-hardware/lenovo/thinkpad/t490>` |
|
||||
| [Lenovo ThinkPad T495](lenovo/thinkpad/t495) | `<nixos-hardware/lenovo/thinkpad/t495>` |
|
||||
| [Lenovo ThinkPad X113 Yoga](lenovo/thinkpad/x13-yoga) | `<nixos-hardware/lenovo/thinkpad/x13-yoga>` |
|
||||
| [Lenovo ThinkPad X13 Yoga](lenovo/thinkpad/x13/yoga.nix) | `<nixos-hardware/lenovo/thinkpad/x13/yoga.nix>` |
|
||||
| [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>` |
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
lenovo-thinkpad-e470 = import ./lenovo/thinkpad/e470;
|
||||
lenovo-thinkpad-e495 = import ./lenovo/thinkpad/e495;
|
||||
lenovo-thinkpad-l13 = import ./lenovo/thinkpad/l13;
|
||||
lenovo-thinkpad-l13-yoga = import ./lenovo/thinkpad/l13-yoga;
|
||||
lenovo-thinkpad-l13-yoga = import ./lenovo/thinkpad/l13-yoga/yoga.nix;
|
||||
lenovo-thinkpad-l14-intel = import ./lenovo/thinkpad/l14/intel;
|
||||
lenovo-thinkpad-l14-amd = import ./lenovo/thinkpad/l14/amd;
|
||||
lenovo-thinkpad-p1 = import ./lenovo/thinkpad/p1;
|
||||
|
@ -74,7 +74,7 @@
|
|||
lenovo-thinkpad-x1-extreme = import ./lenovo/thinkpad/x1-extreme;
|
||||
lenovo-thinkpad-x1-extreme-gen2 = import ./lenovo/thinkpad/x1-extreme/gen2;
|
||||
lenovo-thinkpad-x13 = import ./lenovo/thinkpad/x13;
|
||||
lenovo-thinkpad-x13-yoga = import ./lenovo/thinkpad/x13-yoga;
|
||||
lenovo-thinkpad-x13-yoga = import ./lenovo/thinkpad/x13/yoga.nix;
|
||||
microsoft-surface = import ./microsoft/surface;
|
||||
microsoft-surface-pro-3 = import ./microsoft/surface-pro/3;
|
||||
pcengines-apu = import ./pcengines/apu;
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
{ nixos, lib, pkgs, config, stdenv, ... }:
|
||||
{
|
||||
imports = [
|
||||
../l13
|
||||
./.
|
||||
../yoga.nix
|
||||
];
|
||||
|
||||
# automatic screen orientation
|
||||
hardware.sensor.iio.enable = true;
|
||||
|
||||
services.xserver.wacom.enable = lib.mkDefault config.services.xserver.enable;
|
||||
}
|
|
@ -1,13 +0,0 @@
|
|||
{ config, lib, ... }: {
|
||||
imports = [
|
||||
../.
|
||||
../../../common/cpu/intel
|
||||
../../../common/pc/laptop/acpi_call.nix
|
||||
../../../common/pc/laptop/ssd
|
||||
];
|
||||
|
||||
# automatic screen orientation
|
||||
hardware.sensor.iio.enable = true;
|
||||
|
||||
services.xserver.wacom.enable = lib.mkDefault config.services.xserver.enable;
|
||||
}
|
8
lenovo/thinkpad/x13/yoga.nix
Normal file
8
lenovo/thinkpad/x13/yoga.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{ config, lib, ... }: {
|
||||
imports = [
|
||||
./.
|
||||
../yoga.nix
|
||||
];
|
||||
|
||||
services.xserver.wacom.enable = lib.mkDefault config.services.xserver.enable;
|
||||
}
|
6
lenovo/thinkpad/yoga.nix
Normal file
6
lenovo/thinkpad/yoga.nix
Normal file
|
@ -0,0 +1,6 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# automatic screen orientation
|
||||
hardware.sensor.iio.enable = true;
|
||||
}
|
Loading…
Reference in a new issue