Compare commits

...
Author SHA1 Message Date
Matthew Bauer 9160873c16 add raspberry-pi 0 and 3
Based off of 2.
2019-01-08 17:33:50 -06:00
Yegor Timoshenko a9033dcc5f Merge pull request #88 from bhipple/update/x1-carbon
lenovo x1 carbon gen6: update S3 suspend
2018-12-28 09:51:15 +03:00
Benjamin Hipple bd1ef85b98 lenovo x1 carbon gen6: update S3 suspend
With UEFI >= 1.30, there's an explicit option to enable S3 power management.
Once this is selected, S3 is enabled and "deep" is selected as the default
/sys/power/mem_sleep value without requiring any kernel boot parameters.
2018-12-27 18:40:08 -05:00
Trolli Schmittlauch 1e2c130d38 add basic support for Lenovo Thinkpad T440s (#83)
This adds basic support for the Thinkpad T440s, based on the work done for the T440p. The expression enables:

- microcode updates
- trackpoint support
- kernel module for battery level management
2018-12-02 23:25:43 +00:00
Yegor Timoshenko 99cdc88306 Merge pull request #85 from NixOS/201810/microcode
common/cpu: default microcode updates to enableRedistributableFirmware
2018-10-31 10:28:40 +00:00
Yegor Timoshenko 1d254aceda common/cpu: default microcode updates to enableRedistributableFirmware 2018-10-30 18:16:36 +00:00
7 changed files with 87 additions and 15 deletions

No files matched your search

+1
View File
@@ -37,6 +37,7 @@ 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>` |
+4 -1
View File
@@ -1,3 +1,6 @@
{ config, lib, ... }:
{
hardware.cpu.amd.updateMicrocode = true;
hardware.cpu.amd.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
}
+3 -2
View File
@@ -1,9 +1,10 @@
{ lib, pkgs, ... }:
{ config, lib, pkgs, ... }:
{
boot.initrd.kernelModules = [ "i915" ];
hardware.cpu.intel.updateMicrocode = lib.mkDefault true;
hardware.cpu.intel.updateMicrocode =
lib.mkDefault config.hardware.enableRedistributableFirmware;
hardware.opengl.extraPackages = with pkgs; [
vaapiIntel
+14
View File
@@ -0,0 +1,14 @@
{ 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" ];
};
}
+3 -12
View File
@@ -2,7 +2,9 @@
# 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 = [
@@ -18,15 +20,4 @@
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}"
# ];
}
+32
View File
@@ -0,0 +1,32 @@
{ 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
@@ -0,0 +1,30 @@
{ 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;
}