Compare commits

..
Author SHA1 Message Date
Yegor Timoshenko da2e972988 lenovo/thinkpad/x230: add coreboot sub-profile 2018-10-30 18:17:34 +00:00
10 changed files with 27 additions and 101 deletions

No files matched your search

-1
View File
@@ -37,7 +37,6 @@ imports = [
| Lenovo IdeaPad Z510 | `<nixos-hardware/lenovo/ideapad/z510>` |
| Lenovo ThinkPad T410 | `<nixos-hardware/lenovo/thinkpad/t410>` |
| Lenovo ThinkPad T430 | `<nixos-hardware/lenovo/thinkpad/t430>` |
| Lenovo ThinkPad T440s | `<nixos-hardware/lenovo/thinkpad/t440s>` |
| Lenovo ThinkPad T440p | `<nixos-hardware/lenovo/thinkpad/t440p>` |
| Lenovo ThinkPad T450s | `<nixos-hardware/lenovo/thinkpad/t450s>` |
| Lenovo ThinkPad T460s | `<nixos-hardware/lenovo/thinkpad/t460s>` |
+1 -4
View File
@@ -1,6 +1,3 @@
{ config, lib, ... }:
{
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.cpu.amd.updateMicrocode = true;
}
+2 -3
View File
@@ -1,10 +1,9 @@
{ config, lib, pkgs, ... }:
{ lib, pkgs, ... }:
{
boot.initrd.kernelModules = [ "i915" ];
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.cpu.intel.updateMicrocode = lib.mkDefault true;
hardware.opengl.extraPackages = with pkgs; [
vaapiIntel
-14
View File
@@ -1,14 +0,0 @@
{ config, lib, pkgs, ... }:
{
imports = [
../.
../../../common/cpu/intel
../../../common/pc/laptop/acpi_call.nix
];
boot = {
# TODO: probably enable tcsd? Is this line necessary?
kernelModules = [ "tpm-rng" ];
};
}
+12 -3
View File
@@ -2,9 +2,7 @@
# standing with kernel 4.6.11 is the following wiki page:
# https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_6). The
# TrackPoint and TouchPad issues there seem to have been fixed already.
#
# Enable the lower-power S3 suspend state by upgrading the BIOS to version >= 1.30,
# then manually selecting Linux in the power management section.
{ config, pkgs, ... }:
{
imports = [
@@ -20,4 +18,15 @@
CPU_SCALING_GOVERNOR_ON_BAT=powersave
ENERGY_PERF_POLICY_ON_BAT=powersave
'';
# Enable S3 suspend state: you have to manually follow the
# instructions shown here: https://delta-xi.net/#056 in order to
# produce the ACPI patched table. Put the CPIO archive in /boot and
# then enable the following lines
# boot.kernelParams = [
# "mem_sleep_default=deep"
# ];
# boot.initrd.prepend = [
# "${/boot/acpi_override}"
# ];
}
+8
View File
@@ -0,0 +1,8 @@
{
imports = [
../.
../../../common/cpu/intel
];
boot.kernelModules = [ "tpm-rng" ];
}
@@ -0,0 +1,3 @@
{
imports = [ ../common.nix ];
}
+1 -14
View File
@@ -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"
'';
}
-32
View File
@@ -1,32 +0,0 @@
{ lib, pkgs, ...}:
{
boot = {
consoleLogLevel = lib.mkDefault 7;
extraTTYs = [ "ttyAMA0" ];
kernelPackages = lib.mkDefault pkgs.linuxPackages_rpi;
kernelParams = [
"dwc_otg.lpm_enable=0"
"console=ttyAMA0,115200"
"rootwait"
"elevator=deadline"
];
loader = {
grub.enable = lib.mkDefault false;
generationsDir.enable = lib.mkDefault false;
raspberryPi = {
enable = lib.mkDefault true;
version = lib.mkDefault 1;
};
};
};
nix.buildCores = 1;
nixpkgs.config.platform = lib.systems.platforms.raspberrypi;
# cpufrequtils doesn't build on ARM
powerManagement.enable = lib.mkDefault false;
services.openssh.enable = lib.mkDefault true;
}
-30
View File
@@ -1,30 +0,0 @@
{ lib, pkgs, ...}:
{
boot = {
consoleLogLevel = lib.mkDefault 7;
extraTTYs = [ "ttyAMA0" ];
kernelPackages = lib.mkDefault pkgs.linuxPackages_rpi;
kernelParams = [
"dwc_otg.lpm_enable=0"
"console=ttyAMA0,115200"
"rootwait"
"elevator=deadline"
"cma=32M"
];
loader = {
grub.enable = lib.mkDefault false;
generationsDir.enable = lib.mkDefault false;
raspberryPi = {
enable = lib.mkDefault true;
version = lib.mkDefault 3;
};
};
};
nix.buildCores = 4;
nixpkgs.config.platform = lib.systems.platforms.aarch64-multiplatform;
services.openssh.enable = lib.mkDefault true;
}