mirror of
https://github.com/NixOS/nixos-hardware
synced 2024-11-23 11:29:42 +01:00
lenovo/thinkpad/x230: add coreboot sub-profile
This commit is contained in:
parent
5c8cab8493
commit
da2e972988
3 changed files with 12 additions and 14 deletions
8
lenovo/thinkpad/x230/common.nix
Normal file
8
lenovo/thinkpad/x230/common.nix
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../.
|
||||||
|
../../../common/cpu/intel
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.kernelModules = [ "tpm-rng" ];
|
||||||
|
}
|
3
lenovo/thinkpad/x230/coreboot/default.nix
Normal file
3
lenovo/thinkpad/x230/coreboot/default.nix
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
imports = [ ../common.nix ];
|
||||||
|
}
|
|
@ -1,19 +1,6 @@
|
||||||
{ config, lib, pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
../.
|
./common.nix
|
||||||
../../../common/cpu/intel
|
|
||||||
../../../common/pc/laptop/acpi_call.nix
|
../../../common/pc/laptop/acpi_call.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
boot = {
|
|
||||||
kernelModules = [
|
|
||||||
"tpm-rng"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
services.xserver.deviceSection = lib.mkDefault ''
|
|
||||||
Option "TearFree" "true"
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue