mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-02 22:13:29 +01:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
da2e972988 |
No files matched your search
@@ -37,7 +37,6 @@ imports = [
|
|||||||
| Lenovo IdeaPad Z510 | `<nixos-hardware/lenovo/ideapad/z510>` |
|
| Lenovo IdeaPad Z510 | `<nixos-hardware/lenovo/ideapad/z510>` |
|
||||||
| Lenovo ThinkPad T410 | `<nixos-hardware/lenovo/thinkpad/t410>` |
|
| Lenovo ThinkPad T410 | `<nixos-hardware/lenovo/thinkpad/t410>` |
|
||||||
| Lenovo ThinkPad T430 | `<nixos-hardware/lenovo/thinkpad/t430>` |
|
| 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 T440p | `<nixos-hardware/lenovo/thinkpad/t440p>` |
|
||||||
| Lenovo ThinkPad T450s | `<nixos-hardware/lenovo/thinkpad/t450s>` |
|
| Lenovo ThinkPad T450s | `<nixos-hardware/lenovo/thinkpad/t450s>` |
|
||||||
| Lenovo ThinkPad T460s | `<nixos-hardware/lenovo/thinkpad/t460s>` |
|
| Lenovo ThinkPad T460s | `<nixos-hardware/lenovo/thinkpad/t460s>` |
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
{ config, lib, ... }:
|
|
||||||
|
|
||||||
{
|
{
|
||||||
hardware.cpu.amd.updateMicrocode =
|
hardware.cpu.amd.updateMicrocode = true;
|
||||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
}
|
}
|
||||||
@@ -1,10 +1,9 @@
|
|||||||
{ config, lib, pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
boot.initrd.kernelModules = [ "i915" ];
|
boot.initrd.kernelModules = [ "i915" ];
|
||||||
|
|
||||||
hardware.cpu.intel.updateMicrocode =
|
hardware.cpu.intel.updateMicrocode = lib.mkDefault true;
|
||||||
lib.mkDefault config.hardware.enableRedistributableFirmware;
|
|
||||||
|
|
||||||
hardware.opengl.extraPackages = with pkgs; [
|
hardware.opengl.extraPackages = with pkgs; [
|
||||||
vaapiIntel
|
vaapiIntel
|
||||||
|
|||||||
@@ -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" ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -2,9 +2,7 @@
|
|||||||
# standing with kernel 4.6.11 is the following wiki page:
|
# standing with kernel 4.6.11 is the following wiki page:
|
||||||
# https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_6). The
|
# https://wiki.archlinux.org/index.php/Lenovo_ThinkPad_X1_Carbon_(Gen_6). The
|
||||||
# TrackPoint and TouchPad issues there seem to have been fixed already.
|
# 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, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
@@ -20,4 +18,15 @@
|
|||||||
CPU_SCALING_GOVERNOR_ON_BAT=powersave
|
CPU_SCALING_GOVERNOR_ON_BAT=powersave
|
||||||
ENERGY_PERF_POLICY_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,8 @@
|
|||||||
|
{
|
||||||
|
imports = [
|
||||||
|
../.
|
||||||
|
../../../common/cpu/intel
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.kernelModules = [ "tpm-rng" ];
|
||||||
|
}
|
||||||
@@ -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"
|
|
||||||
'';
|
|
||||||
}
|
}
|
||||||
@@ -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;
|
|
||||||
}
|
|
||||||
@@ -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;
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user