aboutsummaryrefslogtreecommitdiff
path: root/nixos/modules/turris-mox-support.nix
blob: 9596b156c2a2723aa8eef4b63d0c4a3394473e49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ config, lib, pkgs, ... }:

with lib;

{

  config = mkIf (config.turris.board == "mox") {
    # Use early print to the serial console
    boot.kernelParams = [
      "earlycon=ar3700_uart,0xd0012000" "console=ttyMV0,115200"
      "pcie_aspm=off" # Fix for crashes due to SError Interrupt on ath10k load
    ];
    # Custom kernel config
    boot.kernelPatches = [{
      name = "rwtm";
      patch = null;
      extraConfig = ''
        TURRIS_MOX_RWTM y
        ARMADA_37XX_RWTM_MBOX y
        '';
    }];

    # The additional administration packages
    environment.systemPackages =  with pkgs; [
      #mox-otp
    ];

  };
}