lenovo/thinkpad: Refactor of yogas

This commit is contained in:
Your Name
2021-07-01 13:52:08 +02:00
parent 6a77d708e7
commit c076216644
6 changed files with 20 additions and 21 deletions

View File

@@ -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;
}

View File

@@ -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;
}

View 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
View File

@@ -0,0 +1,6 @@
{ config, lib, pkgs, ... }:
{
# automatic screen orientation
hardware.sensor.iio.enable = true;
}