From 1669d6f75914738306d8dff587d0bcb69b8f6b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sun, 14 Aug 2022 09:03:13 +0200 Subject: nixos/modules/turris-defaults: enable leds for omnia --- nixos/modules/turris-defaults.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/modules/turris-defaults.nix b/nixos/modules/turris-defaults.nix index 9d7a19c..f79b8c4 100644 --- a/nixos/modules/turris-defaults.nix +++ b/nixos/modules/turris-defaults.nix @@ -42,6 +42,14 @@ in { # Use the latest kernel boot.kernelPackages = mkDefault pkgs.linuxPackages_latest; + boot.kernelPatches = mkIf (config.turris.board == "omnia") [{ + name = "omnia"; + patch = null; + extraConfig = '' + LEDS_CLASS_MULTICOLOR y + LEDS_TURRIS_OMNIA y + ''; + }]; # The supported deployment is on BTRFS boot.supportedFilesystems = [ "btrfs" ]; -- cgit v1.2.3