mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-11-30 13:03:30 +01:00
Compare commits
6
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9160873c16 | ||
|
|
a9033dcc5f | ||
|
|
bd1ef85b98 | ||
|
|
1e2c130d38 | ||
|
|
99cdc88306 | ||
|
|
1d254aceda |
No files matched your search
@@ -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>` |
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
hardware.cpu.amd.updateMicrocode = true;
|
||||
hardware.cpu.amd.updateMicrocode =
|
||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
||||
}
|
||||
@@ -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
|
||||
|
||||
@@ -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" ];
|
||||
};
|
||||
}
|
||||
@@ -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}"
|
||||
# ];
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in new issue
Block a user