tv mu: reload iwlwifi on activation

This commit is contained in:
tv 2019-08-02 17:03:12 +02:00
parent f15434475f
commit b92610eacb

View File

@ -49,6 +49,13 @@ with import <stockholm/lib>;
networking.networkmanager.enable = true; 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; [ environment.systemPackages = with pkgs; [
chromium chromium
firefoxWrapper firefoxWrapper