diff options
author | Karel Kočí <cynerd@email.cz> | 2022-08-14 09:03:13 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-08-14 09:06:31 +0200 |
commit | 1669d6f75914738306d8dff587d0bcb69b8f6b76 (patch) | |
tree | 83f871e98fd8ff9f5db1555edf6d6a19c30dedfe | |
parent | 5d49d78d9612ed23947a6c963ad71f441abeac8d (diff) | |
download | nixturris-1669d6f75914738306d8dff587d0bcb69b8f6b76.tar.gz nixturris-1669d6f75914738306d8dff587d0bcb69b8f6b76.tar.bz2 nixturris-1669d6f75914738306d8dff587d0bcb69b8f6b76.zip |
nixos/modules/turris-defaults: enable leds for omnia
-rw-r--r-- | nixos/modules/turris-defaults.nix | 8 |
1 files changed, 8 insertions, 0 deletions
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" ]; |