diff options
author | Karel Kočí <cynerd@email.cz> | 2022-08-19 23:59:13 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-08-19 23:59:13 +0200 |
commit | c12a03b8511f4742123959f0cb3c96a441ac2581 (patch) | |
tree | eabfc5c8c962fe482d8dbf545389de92bdebb757 /nixos/modules/turris-mox-support.nix | |
parent | 1669d6f75914738306d8dff587d0bcb69b8f6b76 (diff) | |
download | nixturris-c12a03b8511f4742123959f0cb3c96a441ac2581.tar.gz nixturris-c12a03b8511f4742123959f0cb3c96a441ac2581.tar.bz2 nixturris-c12a03b8511f4742123959f0cb3c96a441ac2581.zip |
Improve kernel support and hostapd
Diffstat (limited to 'nixos/modules/turris-mox-support.nix')
-rw-r--r-- | nixos/modules/turris-mox-support.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/nixos/modules/turris-mox-support.nix b/nixos/modules/turris-mox-support.nix new file mode 100644 index 0000000..9596b15 --- /dev/null +++ b/nixos/modules/turris-mox-support.nix @@ -0,0 +1,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 + ]; + + }; +} |