about summary refs log tree commit diff
path: root/pkgs/os-specific
diff options
context:
space:
mode:
authorArtem Ignatyev <230930+cryo28@users.noreply.github.com>2024-01-25 20:07:57 -0600
committerArtem Ignatyev <230930+cryo28@users.noreply.github.com>2024-01-25 20:07:57 -0600
commitf6cee2673be09385e78c0301c8d1b05db528947a (patch)
treedcc5890a66b288b49ae4e419609b72d9991ff2dd /pkgs/os-specific
parent6b5a4173e546cfd386d813d57afea4111a6b6111 (diff)
downloadnixlib-f6cee2673be09385e78c0301c8d1b05db528947a.tar
nixlib-f6cee2673be09385e78c0301c8d1b05db528947a.tar.gz
nixlib-f6cee2673be09385e78c0301c8d1b05db528947a.tar.bz2
nixlib-f6cee2673be09385e78c0301c8d1b05db528947a.tar.lz
nixlib-f6cee2673be09385e78c0301c8d1b05db528947a.tar.xz
nixlib-f6cee2673be09385e78c0301c8d1b05db528947a.tar.zst
nixlib-f6cee2673be09385e78c0301c8d1b05db528947a.zip
linux: CONFIG_LED_TRIGGER_PHY=y
Diffstat (limited to 'pkgs/os-specific')
-rw-r--r--pkgs/os-specific/linux/kernel/common-config.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix
index 69f16fd79cf6..a66996b6c143 100644
--- a/pkgs/os-specific/linux/kernel/common-config.nix
+++ b/pkgs/os-specific/linux/kernel/common-config.nix
@@ -1023,6 +1023,9 @@ let
       # Bump the maximum number of CPUs to support systems like EC2 x1.*
       # instances and Xeon Phi.
       NR_CPUS = freeform "384";
+
+      # Enable LEDS to display link-state status of PHY devices (i.e. eth lan/wan interfaces)
+      LED_TRIGGER_PHY = whenAtLeast "4.10" yes;
     } // optionalAttrs (stdenv.hostPlatform.system == "armv7l-linux" || stdenv.hostPlatform.system == "aarch64-linux") {
       # Enables support for the Allwinner Display Engine 2.0
       SUN8I_DE2_CCU = yes;