summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2019-08-02 17:03:12 +0200
committertv <tv@krebsco.de>2019-08-02 17:03:12 +0200
commitb92610eacb6c88fe28f46a91ee8697cb542ab6aa (patch)
treef76f371c2600f35e425dd04bb7036c395666d7fc
parentf15434475faf17795bd296fc3570bc7dca34591a (diff)
tv mu: reload iwlwifi on activation
-rw-r--r--tv/1systems/mu/config.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/tv/1systems/mu/config.nix b/tv/1systems/mu/config.nix
index f1cd7d673..98332b2d6 100644
--- a/tv/1systems/mu/config.nix
+++ b/tv/1systems/mu/config.nix
@@ -49,6 +49,13 @@ with import <stockholm/lib>;
networking.networkmanager.enable = true;
+ # XXX reload to work around occasional "Failed to load firmware chunk!"
+ # TODO only do this if firmware is actually broken(?)
+ system.activationScripts.reload-iwlwifi = /* sh */ ''
+ ${pkgs.kmod}/bin/modprobe -vr iwlwifi
+ ${pkgs.kmod}/bin/modprobe -v iwlwifi
+ '';
+
environment.systemPackages = with pkgs; [
chromium
firefoxWrapper