From da2e97298824182448628f63d0b8cc0bae02706e Mon Sep 17 00:00:00 2001 From: Yegor Timoshenko Date: Tue, 30 Oct 2018 18:17:34 +0000 Subject: [PATCH] lenovo/thinkpad/x230: add coreboot sub-profile --- lenovo/thinkpad/x230/common.nix | 8 ++++++++ lenovo/thinkpad/x230/coreboot/default.nix | 3 +++ lenovo/thinkpad/x230/default.nix | 15 +-------------- 3 files changed, 12 insertions(+), 14 deletions(-) create mode 100644 lenovo/thinkpad/x230/common.nix create mode 100644 lenovo/thinkpad/x230/coreboot/default.nix diff --git a/lenovo/thinkpad/x230/common.nix b/lenovo/thinkpad/x230/common.nix new file mode 100644 index 0000000..5867ab9 --- /dev/null +++ b/lenovo/thinkpad/x230/common.nix @@ -0,0 +1,8 @@ +{ + imports = [ + ../. + ../../../common/cpu/intel + ]; + + boot.kernelModules = [ "tpm-rng" ]; +} diff --git a/lenovo/thinkpad/x230/coreboot/default.nix b/lenovo/thinkpad/x230/coreboot/default.nix new file mode 100644 index 0000000..a1d4fb2 --- /dev/null +++ b/lenovo/thinkpad/x230/coreboot/default.nix @@ -0,0 +1,3 @@ +{ + imports = [ ../common.nix ]; +} diff --git a/lenovo/thinkpad/x230/default.nix b/lenovo/thinkpad/x230/default.nix index 58b09f4..6adb1e0 100644 --- a/lenovo/thinkpad/x230/default.nix +++ b/lenovo/thinkpad/x230/default.nix @@ -1,19 +1,6 @@ -{ config, lib, pkgs, ... }: - { imports = [ - ../. - ../../../common/cpu/intel + ./common.nix ../../../common/pc/laptop/acpi_call.nix ]; - - boot = { - kernelModules = [ - "tpm-rng" - ]; - }; - - services.xserver.deviceSection = lib.mkDefault '' - Option "TearFree" "true" - ''; }