aboutsummaryrefslogtreecommitdiff
path: root/nixos/modules/turris-mox-support.nix
blob: c3fd5083c4b590605aeff1f9740b7208cf751de2 (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
{ 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
    ];
    # Insert these modules early. The watchdog should be handled as soon as
    # possible and moxtet is for some reason ignored otherwise.
    boot.initrd.kernelModules = [
      "armada_37xx_wdt"
      "moxtet" "gpio-moxtet" "turris-mox-rwtm"
    ];

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

  };
}