aboutsummaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-10-21 15:03:24 +0200
committerKarel Kočí <cynerd@email.cz>2022-10-21 15:03:24 +0200
commite60f961c1da0bf460d84a5f50c6218378104ec17 (patch)
treec0bf5a1a597dcb55d707030b26988290cc204070 /nixos
parent462a088c474832b19ff2730de1e6bea66d399c23 (diff)
downloadnixturris-e60f961c1da0bf460d84a5f50c6218378104ec17.tar.gz
nixturris-e60f961c1da0bf460d84a5f50c6218378104ec17.tar.bz2
nixturris-e60f961c1da0bf460d84a5f50c6218378104ec17.zip
nixos: force watchdog and moxtet load in initrd
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/turris-mox-support.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/nixos/modules/turris-mox-support.nix b/nixos/modules/turris-mox-support.nix
index 578e467..c3fd508 100644
--- a/nixos/modules/turris-mox-support.nix
+++ b/nixos/modules/turris-mox-support.nix
@@ -10,10 +10,16 @@ with lib;
"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
+ mox-otp
];
};